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 .

4

2 回答 2

4

JQTE Editior中包含一个属性contenteditable默认情况下它是 true 如果我们设置 false 那么它是只读模式

 $("#jqte editior id").find(".jqte_editor").attr("contenteditable","false");
于 2013-09-17T10:18:50.207 回答
2
$(".jqte_editor").prop('contenteditable','false');
于 2013-10-25T05:07:17.303 回答