How to disable HTML tags from tinyMCE

半腔热情 提交于 2019-12-11 03:14:01

问题


https://www.dropbox.com/s/g2nry5ifx0x9v52/2013-12-20%2011_20_26-Ingage%20Admin%20Panel.png

Hello i want to not saw the strong>>em from my tinyMce. Knows anyone how to do it? Check out the photo to understand what i want!


回答1:


You can hide the bottom toolbar using this tinymce config parameter:

statusbar : false,




回答2:


If you are using wordpress install this plugin http://wordpress.org/plugins/tinymce-advanced/ This plugin will help to customize the tinyMCE Editor.

Otherwise you can set "valid_elements"

tinyMCE.init({
       valid_elements : "..................."
});

valid_elements: "@[class],p[style],h3,h4,h5,h6,a[href|target],strong/b,div[align],br,table,tbody,thead,tr,td,ul,ol,li,img[src]"

Refer : http://www.tinymce.com/wiki.php/configuration:valid_elements



来源:https://stackoverflow.com/questions/20700257/how-to-disable-html-tags-from-tinymce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!