Reputation: 11
in simple html page CKeditor with character limit for only insert character(MAX=100 character).
Upvotes: 1
Views: 2556
Reputation: 1
It has worked for me, use a data tag for example <input data-ml="400"... then in the ckeditor config.js file I have used this property for wordcount
config.wordcount = { showParagraphs: false, showWordCount: true, showCharCount: true, countSpacesAsChars: false, countHTML: false, maxWordCount: -1, maxCharCount: this.element.data('ml') ? this.element.data('ml') : 400 };
Upvotes: 0
Reputation: 161
For pure HTML one We have
<input type="text" id="Textbox" name="Textbox" maxlength="100" />
Kindly have a look over that ,if it not solve your problem, let me know. Thank You
Upvotes: 3