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;