From e6af3476d912d5a3762cd0a598c0f187bf4d4ae5 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 20 Apr 2020 15:22:16 +0200 Subject: [PATCH] Upgrade ckeditor to 4.14 --- bower.json | 2 +- www/pad/inner.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 61183602b..ab99a55a8 100644 --- a/bower.json +++ b/bower.json @@ -21,7 +21,7 @@ "jquery": "2.2.4", "tweetnacl": "0.12.2", "components-font-awesome": "^4.6.3", - "ckeditor": "4.7.3", + "ckeditor": "4.14.0", "codemirror": "^5.19.0", "requirejs": "2.3.5", "marked": "0.5.0", diff --git a/www/pad/inner.js b/www/pad/inner.js index 88e6c8b96..591f546cf 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -445,11 +445,14 @@ define([ if ($faLink.length) { $html.find('iframe').contents().find('head').append($faLink.clone()); } - var ml = Ckeditor.instances.editor1.plugins.magicline.backdoor.that.line.$; + + var ml = editor._.magiclineBackdoor.that.line.$; [ml, ml.parentElement].forEach(function (el) { el.setAttribute('class', 'non-realtime'); }); + window.editor = editor; + var $iframe = $('html').find('iframe').contents(); var ifrWindow = $html.find('iframe')[0].contentWindow;