From 6f1b04ca572ad902b09392408b5e48e82519f87f Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 5 May 2020 18:11:00 +0200 Subject: [PATCH] Fix print in ckeditor with firefox --- www/pad/inner.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www/pad/inner.js b/www/pad/inner.js index 2919d3991..b3e4708d4 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -979,6 +979,13 @@ define([ editor.on('instanceReady', waitFor()); }).nThen(function() { + var _getPath = Ckeditor.plugins.getPath; + Ckeditor.plugins.getPath = function (name) { + if (name === 'preview') { + return window.location.origin + "/bower_components/ckeditor/plugins/preview/"; + } + return _getPath(name); + }; editor.plugins.mediatag.import = function($mt) { framework._.sfCommon.importMediaTag($mt); }; @@ -1070,4 +1077,4 @@ define([ }); }; main(); -}); \ No newline at end of file +});