diff --git a/modules/backend/formwidgets/RichEditor.php b/modules/backend/formwidgets/RichEditor.php index 0fa7bcd16..061ee7416 100644 --- a/modules/backend/formwidgets/RichEditor.php +++ b/modules/backend/formwidgets/RichEditor.php @@ -119,10 +119,13 @@ class RichEditor extends FormWidgetBase { $this->addCss('css/richeditor.css', 'core'); $this->addJs('js/build-min.js', 'core'); + $this->addJs('/modules/backend/formwidgets/codeeditor/assets/js/build-min.js', 'core'); - if ($lang = $this->getValidEditorLang()) { - $this->addJs('vendor/redactor/lang/'.$lang.'.js', 'core'); - } +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + // if ($lang = $this->getValidEditorLang()) { + // $this->addJs('vendor/redactor/lang/'.$lang.'.js', 'core'); + // } +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! } /** diff --git a/modules/backend/formwidgets/richeditor/assets/js/OCTOBER-README.md b/modules/backend/formwidgets/richeditor/assets/js/OCTOBER-README.md deleted file mode 100644 index e3096b366..000000000 --- a/modules/backend/formwidgets/richeditor/assets/js/OCTOBER-README.md +++ /dev/null @@ -1 +0,0 @@ -There's a hack in plugin.figure.js script. Added method destory(). The figure plugin keeps a reference to the editor and toolba which can't be cleaned up after the Editor is destroyed. Also, the figure plugin binds event handlers that are never unbound. --ab Apr 08 2015 \ No newline at end of file diff --git a/modules/backend/formwidgets/richeditor/assets/js/build.js b/modules/backend/formwidgets/richeditor/assets/js/build.js index 40f4a4a58..134ed0514 100755 --- a/modules/backend/formwidgets/richeditor/assets/js/build.js +++ b/modules/backend/formwidgets/richeditor/assets/js/build.js @@ -7,11 +7,10 @@ * @see build-min.js * -=require ../vendor/redactor/redactor.js -=require plugin.fullscreen.js -=require plugin.figure.js -=require plugin.table.js -=require plugin.pagelinks.js +=require ../vendor/froala/js/froala_editor.min.js +=require ../vendor/froala/js/plugins/fullscreen.min.js +=require ../vendor/froala/js/plugins/code_beautifier.min.js +=require ../vendor/froala_drm/js/plugins/code_view.js =require richeditor.js */ diff --git a/modules/backend/formwidgets/richeditor/assets/js/plugin.definedlinks.js b/modules/backend/formwidgets/richeditor/assets/js/plugin.definedlinks.js deleted file mode 100755 index 911e75af6..000000000 --- a/modules/backend/formwidgets/richeditor/assets/js/plugin.definedlinks.js +++ /dev/null @@ -1,47 +0,0 @@ -if (!RedactorPlugins) var RedactorPlugins = {}; - -(function($) { - - RedactorPlugins.definedlinks = function() { - return { - init: function() { - if (!this.opts.definedLinks) return; - - this.modal.addCallback('link', $.proxy(this.definedlinks.load, this)); - - }, - load: function() { - var $select = $('') - $('#redactor-modal-link-insert').prepend($select) - - this.pagelinks.storage = {}; - - this.$editor.request(this.opts.pageLinksHandler, { - success: $.proxy(function(data) { - - $.each(data.links, $.proxy(function(key, val) { - this.pagelinks.storage[key] = val - $select.append($('