相关疑难解决方法(0)

限制tinyMCE中的字符数

我正在使用tinyMCe我的项目.一切正常,但现在我想限制将插入tinyMcetextarea 的字符数

tinyMCE.init({
// General options
mode : "textareas",
theme : "simple",
plugins : "autolink,lists,pagebreak,style,table,save,advhr,advimage,advlink,emotions,media,noneditable,nonbreaking",

// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect",
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,code,|,forecolor,backcolor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
max_chars : "10",
max_chars_indicator : "lengthBox",
theme_advanced_resizing : true
});
Run Code Online (Sandbox Code Playgroud)

我用了 :-

max_chars : "10",
max_chars_indicator : "lengthBox",
Run Code Online (Sandbox Code Playgroud)

但仍然没有工作.谢谢.

javascript tinymce rte

23
推荐指数
4
解决办法
4万
查看次数

标签 统计

javascript ×1

rte ×1

tinymce ×1