vendredi 10 février 2017

MaxLength/characters for input in medium-editor

I am using medium-editor.

The code to initialize medium-editor class is given as

var editor = new MediumEditor(el, {
            placeholder: false,
            toolbar: false
        })

and I am using following method to bind medium-editor for my custom fields.

editor.subscribe('editableInput', function (event, currentEditable) {
// my code goes here
}

My problem is that, I am unable to restrict maxLength for my medium-editor fields. I have not found any option to pass to medium-editor class to restrict the max characters.

Is there any way that I can restrict the max characters in medium-editor?

Aucun commentaire:

Enregistrer un commentaire