diff --git a/src/static/js/pad.js b/src/static/js/pad.js index a2c76c08c..fc04e3c2d 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -322,7 +322,7 @@ function handshake() pad._afterHandshake(); initalized = true; - $("body").addClass(clientVars.readonly ? "readonly" : "readwrite") + $("#innerdocbody").addClass(clientVars.readonly ? "readonly" : "readwrite") padeditor.ace.callWithAce(function (ace) { ace.ace_setEditable(!clientVars.readonly);