From 27d4686ff8a7181df83f56dd62c74421359dcca6 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 12 Apr 2015 19:30:06 +0100 Subject: [PATCH] readwrite should be on innerdoc --- src/static/js/pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);