fix(quill): Don't render content as editable

This commit is contained in:
Fándly Gergő 2019-11-10 20:43:37 +02:00
parent 1f942b7f71
commit 9e77cce901

View File

@ -120,7 +120,9 @@ jQuery(function($){
function loadQuill(object, delta){ function loadQuill(object, delta){
var tmp=$("<div></div>"); var tmp=$("<div></div>");
(new Quill(tmp[0])).setContents(JSON.parse(delta)); (new Quill(tmp[0])).setContents(JSON.parse(delta));
tmp.children().attr("contenteditable", false);
$(object).html(tmp.html()); $(object).html(tmp.html());
tmp.remove();
} }
//add leading zeros //add leading zeros