Ogranicz liczbę postaci w tinyMCE
UżywamtinyMCe
dla mojego projektu. Wszystko działa dobrze, ale teraz chcę ograniczyć liczbę znaków, które będą wstawianetinyMce
textarea
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
});
Użyłem :-
max_chars : "10",
max_chars_indicator : "lengthBox",
ale nadal nie działa. Z góry dziękuję.