我有以下Tinymce配置设置:
//set up a new editor function
setup : function(ed) {
//peform this action every time a key is pressed
ed.onKeyUp.add(function(ed, e) {
//setting our max character limit
tinymax = 10;
//grabbing the length of the curent editors content
conte
我一直在尝试实现一个字符计数器,它显示用户可以使用jQuery在文本区域中输入的字符数。以下是代码:
HTML:
<textarea id="questionTextBox" placeholder="Enter question e.g. How do I as for a pay raise?" name="data[Qna_question][question_text]"></textarea>
<span id="noOfChar">128</span> charact