make sure contenteditable is not set in read only mode

This commit is contained in:
ansuz 2017-09-05 18:35:11 +02:00
parent 6a735b441f
commit 47ec959032
1 changed files with 2 additions and 0 deletions

View File

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