如何在TinyMCE中添加输入标签

时间:2020-08-13 18:57:29

标签: reactjs tinymce

在TinyMCE内编写内容时,每个内容都放在<p>标签内,而我想在p标签内添加<input>标签。在tinymCE中也有添加输入字段或文本框选项的选项。

例如,我想创建这种类型的内容

<p>This is ultimate<input /></p>
<Editor
        initialValue="<p>This is the initial content of the editor</p>"
        init={{
          height: 500,
          menubar: true,
          plugins: [
            'advlist autolink lists link image charmap print preview anchor',
            'searchreplace visualblocks code fullscreen',
            'insertdatetime media table paste code help wordcount'
          ],
          toolbar:
            ` emoticons | preview |fontselect |  fontsizeselect | table |undo redo | charmap | formatselect | bold italic underline strikethrough  backcolor | \
            alignleft aligncenter alignright alignjustify | \
            bullist numlist outdent indent | removeformat | help`
            
          }}
        onEditorChange={this.handleEditorChange}
      />

0 个答案:

没有答案