make sure contenteditable is not set in read only mode
This commit is contained in:
parent
6a735b441f
commit
47ec959032
@ -369,6 +369,8 @@ define([
|
|||||||
|
|
||||||
if (!readOnly && !initializing) {
|
if (!readOnly && !initializing) {
|
||||||
userDocStateDom.setAttribute("contenteditable", "true"); // lol wtf
|
userDocStateDom.setAttribute("contenteditable", "true"); // lol wtf
|
||||||
|
} else if (readOnly) {
|
||||||
|
userDocStateDom.removeAttribute("contenteditable");
|
||||||
}
|
}
|
||||||
var patch = (DD).diff(inner, userDocStateDom);
|
var patch = (DD).diff(inner, userDocStateDom);
|
||||||
(DD).apply(inner, patch);
|
(DD).apply(inner, patch);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user