Rituraj ratan
Rituraj ratan

Reputation: 10378

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 .

Upvotes: 1

Views: 5251

Answers (2)

Vaibhavi Azrekar
Vaibhavi Azrekar

Reputation: 13

$(".jqte_editor").prop('contenteditable','false');

Upvotes: 2

Rituraj ratan
Rituraj ratan

Reputation: 10378

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");

Upvotes: 4

Related Questions