然后保存后的输出是
pthis is my test editorp
但它的原文是
this is my test editor
在将数据保存到 mysql 数据库期间,标签 P 自动添加到我现有的文本中。 我怎样才能删除这个标签 P?
最佳答案
尝试使用以下代码。希望它能奏效。
tinymce.init({
mode:'textareas',
editor_selector : "mceEditor",
editor_deselector : "mceNoEditor",
force_br_newlines : false,
force_p_newlines : false,
forced_root_block : ''
});
关于javascript - Tinymce pragraph 标签 P 在保存数据时添加到文本区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49899350/