如何停止tinymce添加 to everything I enter?

时间:2022-07-08 20:50:08

I am using TinyMCE as the editor for a field in my database. When I use it and add the text "abc" then this is what gets stored in the database:

我正在使用TinyMCE作为数据库中的一个字段的编辑器。当我使用它并添加文本“abc”时,这就是存储在数据库中的内容:

<!DOCTYPE html><html><head></head><body><p>abc</p></body></html>

How can I stop TinyMCE from adding everything around the <p> tags?

如何阻止TinyMCE在

标签周围添加所有内容?

2 个解决方案

#1


37  

maybe this can help , it's when i have add the plugin : fullpage , add the properties button

这可能会有帮助,当我添加了插件:fullpage,添加属性按钮

or hold of a plugin called FullPage.js for TinyMCE.

或者保存一个名为FullPage的插件。js TinyMCE。

hope this will help you.

希望这对你有帮助。

#2


4  

remove fullpage from plugin plugins: [ "advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "table contextmenu directionality emoticons template textcolor paste textcolor colorpicker textpattern" ],

从插件中删除全页:["advlist autolink自动保存链接图像列表charmap打印预览hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code全屏插入datetime media nonbreaking", "table contextmenu direcitymenu "

#1


37  

maybe this can help , it's when i have add the plugin : fullpage , add the properties button

这可能会有帮助,当我添加了插件:fullpage,添加属性按钮

or hold of a plugin called FullPage.js for TinyMCE.

或者保存一个名为FullPage的插件。js TinyMCE。

hope this will help you.

希望这对你有帮助。

#2


4  

remove fullpage from plugin plugins: [ "advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "table contextmenu directionality emoticons template textcolor paste textcolor colorpicker textpattern" ],

从插件中删除全页:["advlist autolink自动保存链接图像列表charmap打印预览hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code全屏插入datetime media nonbreaking", "table contextmenu direcitymenu "