Search code examples
jqueryjqte

How to disable JQTE editor?


i am using JQTE editor. i want to disable this editor on some condition.that after this condition edit can't be done in this.

how will i do this?

any help appreciated .


Solution

  • in JQTE Editior contain a property contenteditable by default it is true if we set false then it is in readonly mode

     $("#jqte editior id").find(".jqte_editor").attr("contenteditable","false");