diff --git a/www/pad/inner.js b/www/pad/inner.js index 8cd2b9beb..9be24e78a 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -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);