From 9e77cce9010e4364effb1ddf9ab9e7ab5ffdd3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1ndly=20Gerg=C5=91?= Date: Sun, 10 Nov 2019 20:43:37 +0200 Subject: [PATCH] fix(quill): Don't render content as editable --- script/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/main.js b/script/main.js index 6ee9d8d..3880be5 100644 --- a/script/main.js +++ b/script/main.js @@ -120,7 +120,9 @@ jQuery(function($){ function loadQuill(object, delta){ var tmp=$("
"); (new Quill(tmp[0])).setContents(JSON.parse(delta)); + tmp.children().attr("contenteditable", false); $(object).html(tmp.html()); + tmp.remove(); } //add leading zeros