From edc236e17b8fe88ba956573843c9a1f32d7f8cea Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 20 Dec 2017 12:15:43 +0100 Subject: [PATCH] Disable edition in pad read-only mode --- www/pad/inner.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/pad/inner.js b/www/pad/inner.js index ee4e7f58d..af4cbc93c 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -428,6 +428,10 @@ define([ cursor.setToStart(); } + if (framework.isReadOnly()) { + $(inner).attr('contenteditable', 'false'); + } + var fmConfig = { ckeditor: editor, body: $('body'),