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 +});