在vue中导入了kindeditor编辑器插件,怎么写“发布”功能?要选择其中一个版块,标题字数要达到10个以上才能发送功能?

<form id='create_topic_form' action='' method='post'>

      <span class="tab-selector">选择版块:</span>
      <select name="" id="tab-value">
        <option value="">请选择</option>
        <option value="">分享</option>
        <option value="">问答</option>
      </select>
    </form>
    <textarea autofocus id='title' name='title' rows='1' placeholder="标题字数 10 字以上"></textarea>
    <div class="title_editor">
      <editor id="editor_id" height="500px" width="98%"
          :content.sync="editorText" 
          :afterChange="afterChange()"
          pluginsPath="../../static/kindeditor/plugins/"
          :loadStyleMode="false"
          @on-content-change="onContentChange">
      </editor>  
      <!-- <div> editorTextCopy: {{ editorTextCopy }} </div> -->
      <div class='editor_buttons'>
        <input type="submit" class='span-primary submit_btn' data-loading-text="提交中" value="发布">
      </div>
    </div>       

图片描述图片描述

阅读 2.6k
2 个回答

发布之前 判断一下 选择的值 和 标题的字数啊 满足条件才调用发布

需要我回答你什么呢,妹子

推荐问题