1

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 .

Rituraj ratan
  • 10,260
  • 8
  • 34
  • 55

2 Answers2

4

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");
Rituraj ratan
  • 10,260
  • 8
  • 34
  • 55
2
$(".jqte_editor").prop('contenteditable','false');
Rituraj ratan
  • 10,260
  • 8
  • 34
  • 55