问题描述
在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}
/>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)