make sure contenteditable is not set in read only mode

pull/1/head
ansuz 7 years ago
parent 6a735b441f
commit 47ec959032

@ -369,6 +369,8 @@ define([
if (!readOnly && !initializing) {
userDocStateDom.setAttribute("contenteditable", "true"); // lol wtf
} else if (readOnly) {
userDocStateDom.removeAttribute("contenteditable");
}
var patch = (DD).diff(inner, userDocStateDom);
(DD).apply(inner, patch);

Loading…
Cancel
Save