Alex Trofimov 4 лет назад
Родитель
Сommit
b1491eb9e8

+ 0 - 287
modules/boonex/froala/classes/BxFroalaEditor.php

@@ -1,287 +0,0 @@
-<?php defined('BX_DOL') or die('hack attempt');
-/**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup    Froala Froala editor integration
- * @ingroup     UnaModules
- * 
- * @{
- */
-
-/**
- * Froala editor representation.
- * @see BxDolEditor
- */
-class BxFroalaEditor extends BxDolEditor
-{
-    protected $_sModule;
-
-    /**
-     * Common initialization params
-     */
-    protected static $CONF_COMMON = <<<EOS
-        new FroalaEditor('{bx_var_selector}', {
-            {bx_var_custom_init}
-            {bx_var_custom_conf}
-            key:'{bx_var_froala_key}',
-            attribution: false,
-            embedlyKey: '{bx_var_embedly_key}',
-            emoticonsUseImage: false,
-            charCounterCount: false,
-            toolbarSticky: false,
-            quickInsertTags: [],
-            pastePlain: true,
-            entities: '',
-            imageUpload: true,
-            imageUploadURL: '{bx_var_image_upload_url}',
-            videoUpload: false,
-            language: '{bx_var_lang}',
-            theme: '{bx_var_skin}',
-            iconsTemplate: '{bx_var_icons_template}',
-            events: { 
-                'paste.after': function () {
-                    bx_editor_on_space_enter('{bx_var_selector}');
-                },
-                'initialized': function () {
-                    var editor = this;
-                    \$('{bx_var_selector}').data('froala-instance', editor);
-                    \$(editor.el).atwho({
-                        searchKey: 'label',
-                        at: "@", 
-                        limit: 20,
-                        displayTpl: '<li class="bx-mention-row" data-value="\${value}"><span>\${label}</span> <img class="bx-def-round-corners" src="\${thumb}" /></li>',
-                        insertTpl: '<a class="bx-mention" data-profile-id="\${value}" href="\${url}">\${label}</a>',
-                        callbacks: {
-                            remoteFilter: function(query, callback) {
-                                $.getJSON("{bx_url_root}searchExtended.php?action=get_authors", {term: query}, function(data) {
-                                    callback(data);
-                                });
-                            }
-                        },
-                    });
-                    bx_editor_on_init('{bx_var_selector}');
-                },
-                'keydown': function (e) {
-                    var editor = this;
-                    if (e.which == FroalaEditor.KEYCODE.ENTER || e.which == FroalaEditor.KEYCODE.SPACE)
-                        bx_editor_on_space_enter('{bx_var_selector}');
-                    if (e.which == FroalaEditor.KEYCODE.ENTER && \$(editor.el).atwho('isSelecting'))
-                        return false;
-                },
-            }
-        });
-EOS;
-
-    /**
-     * Standard view initialization params
-     */
-    protected static $CONF_STANDARD = "";
-
-    /**
-     * Minimal view initialization params
-     */
-    protected static $CONF_MINI = "";
-
-    /**
-     * Full view initialization params
-     */
-    protected static $CONF_FULL = "";
-
-    /**
-     * Available editor languages
-     */
-    protected static $CONF_LANGS = array('ar' => 1, 'bs' => 1, 'cs' => 1, 'da' => 1, 'de' => 1, 'el' => 1, 'en_ca' => 1, 'en_gb' => 1, 'es' => 1, 'et' => 1, 'fa' => 1, 'fi' => 1, 'fr' => 1, 'he' => 1, 'hr' => 1, 'hu' => 1, 'id' => 1, 'it' => 1, 'ja' => 1, 'ko' => 1, 'ku' => 1, 'me' => 1, 'nb' => 1, 'nl' => 1, 'pl' => 1, 'pt_br' => 1, 'pt_pt' => 1, 'ro' => 1, 'ru' => 1, 'sk' => 1, 'sl' => 1, 'sr' => 1, 'sv' => 1, 'th' => 1, 'tr' => 1, 'uk' => 1, 'vi' => 1, 'zh_cn' => 1, 'zh_tw' => 1);
-
-    protected $_oTemplate;
-    protected $_bJsCssAdded = false;
-
-    public function __construct ($aObject, $oTemplate)
-    {
-        parent::__construct ($aObject);
-
-        $this->_sModule = 'bx_froala';
-
-        if ($oTemplate)
-            $this->_oTemplate = $oTemplate;
-        else
-            $this->_oTemplate = BxDolTemplate::getInstance();
-
-        $this->_aSkins = array(
-            'dark' => array('name' => 'dark', 'title' => '_bx_froala_txt_skin_dark'),
-            'gray' => array('name' => 'gray', 'title' => '_bx_froala_txt_skin_gray'),
-            'royal' => array('name' => 'royal', 'title' => '_bx_froala_txt_skin_royal')
-        );
-    }
-
-    /**
-     * Attach editor to HTML element, in most cases - textarea.
-     * @param $sSelector - jQuery selector to attach editor to.
-     * @param $iViewMode - editor view mode: BX_EDITOR_STANDARD, BX_EDITOR_MINI, BX_EDITOR_FULL
-     * @param $bDynamicMode - is AJAX mode or not, the HTML with editor area is loaded dynamically.
-     */
-    public function attachEditor ($sSelector, $iViewMode = BX_EDITOR_STANDARD, $bDynamicMode = false)
-    {
-        // set visual mode
-        switch ($iViewMode) {
-            case BX_EDITOR_MINI:
-                $sToolbarItems = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_mini'));
-                $sToolbarItemsXC = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_mini_mobile'));
-                $sCustomInit = self::$CONF_MINI;
-                break;
-            case BX_EDITOR_FULL:
-                $sToolbarItems = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_full'));
-                $sToolbarItemsXC = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_full_mobile'));
-                $sCustomInit = self::$CONF_FULL;
-            break;
-            case BX_EDITOR_STANDARD:
-            default:
-                $sToolbarItems = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_standard'));
-                $sToolbarItemsXC = $this->_getToolbarItems(getParam('bx_froala_option_toolbar_standard_mobile'));
-                $sCustomInit = self::$CONF_STANDARD;
-        }
-        $sCustomInit .= "\ntoolbarButtons: " . $sToolbarItems . ",";
-        $sCustomInit .= "\ntoolbarButtonsXS: " . $sToolbarItemsXC . ",";
-
-        // detect language
-        $sLang = BxDolLanguages::getInstance()->detectLanguageFromArray (self::$CONF_LANGS, 'en', true);
-
-        $sCss = 'editor.less';
-        $aCss = BxDolTemplate::getInstance()->_lessCss(array(
-        	'path' => $this->_oTemplate->getCssPath($sCss),
-        	'url' => $this->_oTemplate->getCssUrl($sCss)
-        ));
-
-        $oModule = BxDolModule::getInstance($this->_sModule);
-
-        // allow insert any tags for admins 
-        if(isAdmin())
-            $this->_sConfCustom .= 'htmlRemoveTags: [],';
-        
-        // initialize editor
-        $aMarkers = array(
-            'bx_var_custom_init' => $sCustomInit,
-            'bx_var_custom_conf' => $this->_sConfCustom,
-            'bx_var_plugins_path' => bx_js_string(BX_DOL_URL_PLUGINS_PUBLIC, BX_ESCAPE_STR_APOS),
-            'bx_var_css_path' => bx_js_string($aCss['url'], BX_ESCAPE_STR_APOS),
-            'bx_var_skin' => bx_js_string($this->_sSkin, BX_ESCAPE_STR_APOS),
-            'bx_var_lang' => bx_js_string($sLang, BX_ESCAPE_STR_APOS),
-            'bx_var_selector' => bx_js_string($sSelector, BX_ESCAPE_STR_APOS),
-            'bx_url_root' => bx_js_string(BX_DOL_URL_ROOT, BX_ESCAPE_STR_APOS),
-            'bx_var_froala_key' => bx_js_string(getParam('bx_froala_license_key'), BX_ESCAPE_STR_APOS),
-            'bx_var_embedly_key' => bx_js_string(getParam('sys_embedly_api_key'), BX_ESCAPE_STR_APOS),
-            'bx_var_image_upload_url' => $oModule ? BX_DOL_URL_ROOT . $oModule->_oConfig->getBaseUri() . 'upload' : '',
-            'bx_var_icons_template' => getParam('bx_froala_icons_template'),
-        );
-        $sInitEditor = $this->_replaceMarkers(self::$CONF_COMMON, $aMarkers);
-
-        bx_alert($this->_sModule, 'init_editor', 0, false, array(
-            'conf_common' => self::$CONF_COMMON,
-            'markers' => $aMarkers,
-            'override_result' => &$sInitEditor
-        ));
-
-        if ($bDynamicMode) {
-
-            list($aJs, $aCss) = $this->_getJsCss(true);
-            
-            $sCss = $this->_oTemplate->addCss($aCss, true);
-            
-            $sScript = $sCss . "<script>
-                if ('undefined' == typeof(window.FroalaEditor)) {
-                    bx_get_scripts(" . json_encode($aJs) . ", function () {
-                        $sInitEditor
-                    });
-                } else {
-                	setTimeout(function () {
-                    	$sInitEditor
-                    }, 10); // wait while html is rendered in case of dynamic adding html
-                }
-            </script>";
-
-        } else {
-
-            $sScript = "
-            <script>
-                $(document).ready(function () {
-                    $sInitEditor
-                });
-            </script>";
-
-        }
-
-        return $this->_addJsCss($bDynamicMode) . $sScript;
-    }
-
-    protected function _getToolbarItems($s)
-    {
-        if ($this->_sButtonsCustom !== false)
-            return $this->_sButtonsCustom && '{' == $this->_sButtonsCustom[0] ? $this->_sButtonsCustom : json_encode(explode(',', $this->_sButtonsCustom));
-
-        return $s && '{' == $s[0] ? $s : json_encode(explode(',', $s));
-    }
-
-    /**
-     * Add css/js files which are needed for editor display and functionality.
-     */
-    protected function _addJsCss($bDynamicMode = false, $sInitEditor = '')
-    {
-        if ($bDynamicMode)
-            return '';
-        if ($this->_bJsCssAdded)
-            return '';
-
-        list($aJs, $aCss) = $this->_getJsCss();
-
-        $this->_oTemplate->addJs($aJs);
-        $this->_oTemplate->addCss($aCss);
-        $this->_bJsCssAdded = true;
-        return '';
-    }
-
-    protected function _getPlugins($b3rdParty = false)
-    {
-        $a3rdParty = array('embedly', 'image_aviary', 'spell_checker');
-        $a = explode(',', $this->_sPluginsCustom !== false ? $this->_sPluginsCustom : getParam('bx_froala_option_plugins'));
-        return array_filter($a, function ($s) use ($a3rdParty, $b3rdParty) {
-            return !($b3rdParty ^ in_array($s, $a3rdParty));
-        });
-    }
-
-    protected function _getJsCss($bUseUrlsForJs = false)
-    {
-        $sLang = BxDolLanguages::getInstance()->detectLanguageFromArray (self::$CONF_LANGS, 'en', true);
-        $sJsPrefix = $bUseUrlsForJs ? BX_DOL_URL_MODULES : BX_DIRECTORY_PATH_MODULES;
-        $sJsSuffix = $bUseUrlsForJs ? '' : '|';
-        
-        $aJs = array(
-            $sJsPrefix . 'boonex/froala/js/' . $sJsSuffix . 'editor.js',
-            $sJsPrefix . 'boonex/froala/plugins/froala/js/' . $sJsSuffix . 'froala_editor.pkgd.min.js',
-        );
-        if ($sLang && 'en' != $sLang)
-            $aJs[] = $sJsPrefix . 'boonex/froala/plugins/froala/js/languages/' . $sJsSuffix . $sLang . '.js';
-        
-        $aCss = array(
-            BX_DIRECTORY_PATH_MODULES . 'boonex/froala/template/css/|editor.css',
-            BX_DIRECTORY_PATH_MODULES . 'boonex/froala/plugins/froala/css/|froala_editor.pkgd.min.css', 
-            BX_DIRECTORY_PATH_MODULES . 'boonex/froala/plugins/froala/css/|froala_style.min.css',
-            BX_DIRECTORY_PATH_MODULES . 'boonex/froala/plugins/froala/css/themes/|' . $this->_sSkin . '.min.css',
-        );
-
-        $aPlugins = $this->_getPlugins(true);
-        foreach ($aPlugins as $sPlugin) {
-            $aJs[] = $sJsPrefix . 'boonex/froala/plugins/froala/js/third_party/' . $sJsSuffix . $sPlugin . '.min.js';
-            $aCss[] = BX_DIRECTORY_PATH_MODULES . 'boonex/froala/plugins/froala/css/third_party/|' . $sPlugin . '.min.css';
-        }
-
-        $aPlugins = $this->_getPlugins(false);
-        foreach ($aPlugins as $sPlugin) {
-            $aJs[] = $sJsPrefix . 'boonex/froala/plugins/froala/js/plugins/' . $sJsSuffix . $sPlugin . '.min.js';
-            $aCss[] = BX_DIRECTORY_PATH_MODULES . 'boonex/froala/plugins/froala/css/plugins/|' . $sPlugin . '.min.css';
-        }
-        
-        return array($aJs, $aCss);
-    }
-}
-
-/** @} */

+ 0 - 54
modules/boonex/froala/classes/BxFroalaModule.php

@@ -11,60 +11,6 @@
 
 class BxFroalaModule extends BxDolModule
 {
-    function __construct(&$aModule)
-    {
-        parent::__construct($aModule);
-    }
-
-    public function serviceInjection()
-    {
-        $s = "
-        <script>
-            var fFroalaAddClass = function (s) {
-                $('.bx-content-description,.cmt-body,.bx-base-text-entity-content,.bx-tl-content').addClass('fr-view');
-            };
-            
-            if (typeof glOnProcessHtml === 'undefined')
-                glOnProcessHtml = [];
-            if (glOnProcessHtml instanceof Array)
-                glOnProcessHtml.push(fFroalaAddClass);
-
-            fFroalaAddClass();
-        </script>";
-
-        $oEmbed = BxDolEmbed::getObjectInstance('sys_embedly');
-        return $oEmbed ? $oEmbed->addJsCss() . $s : $s;
-    }
-
-    public function actionUpload()
-    {
-        header('Content-Type: application/json; charset=utf-8');
-
-        if (!($oStorage = BxDolStorage::getObjectInstance('bx_froala_files'))) {
-            echo json_encode(array('error' => '1'));
-            exit;
-        }
-
-        $iProfileId = bx_get_logged_profile_id();
-
-        if (!($iId = $oStorage->storeFileFromForm($_FILES['file'], false, $iProfileId))) {
-            echo json_encode(array('error' => '1'));
-            exit;
-        }
-
-        $oStorage->afterUploadCleanup($iId, $iProfileId);
-
-        $aFileInfo = $oStorage->getFile($iId);
-        if ($aFileInfo && in_array($aFileInfo['ext'], array('jpg', 'jpeg', 'jpe', 'png'))) {
-            $oTranscoder = BxDolTranscoderImage::getObjectInstance('bx_froala_image');
-            $sUrl = $oTranscoder->getFileUrl($iId);
-        }
-        else {
-            $sUrl = $oStorage->getFileUrlById($iId);
-        }
-
-        echo json_encode(array('link' => $sUrl));
-    }
 }
 
 /** @} */

+ 2 - 3
modules/boonex/froala/classes/BxFroalaStudioPage.php

@@ -16,12 +16,11 @@ class BxFroalaStudioPage extends BxTemplStudioModule
         parent::__construct($sModule, $mixedPageName, $sPage);
 
         $this->aMenuItems = array(
-            'settings' => array('name' => 'settings', 'icon' => 'cogs', 'title' => '_adm_lmi_cpt_settings'),
-            'help' => array('name' => 'help', 'icon' => 'question', 'title' => '_bx_froala_information'),
+            'settings' => array('name' => 'settings', 'icon' => 'question', 'title' => '_bx_froala_information'),
         );
     }
     
-    function getHelp ()
+    function getSettings ()
     {
         return _t('_bx_froala_information_block');
     }

+ 2 - 1
modules/boonex/froala/install/config.php

@@ -13,9 +13,10 @@ $aConfig = array(
     /**
      * Main Section.
      */
+    'deprecated' => 1,
     'type' => BX_DOL_MODULE_TYPE_MODULE,
     'name' => 'bx_froala',
-    'title' => 'Froala',
+    'title' => 'Froala (not supported)',
     'note' => 'Froala editor integration.',
     'version' => '13.0.2.DEV',
     'vendor' => 'BoonEx',

+ 2 - 19
modules/boonex/froala/install/langs/en.xml

@@ -1,27 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources name="en" flag="gb" title="English">
     <string name="_sys_module_froala"><![CDATA[Froala]]></string>
-    <string name="_bx_froala"><![CDATA[Froala]]></string>
+    <string name="_bx_froala"><![CDATA[Froala (not supported)]]></string>
 
     <string name="_bx_froala_setting"><![CDATA[Froala Setting]]></string>
-    <string name="_bx_froala_adm_stg_cpt_type"><![CDATA[Froala]]></string>
-    <string name="_bx_froala_adm_stg_cpt_category_general"><![CDATA[General]]></string>
-    <string name="_bx_froala_option_license_key"><![CDATA[License key]]></string>
-    <string name="_bx_froala_option_icons_template"><![CDATA[Icons template]]></string>
-    <string name="_bx_froala_option_plugins"><![CDATA[Plugins]]></string>
-    <string name="_bx_froala_option_toolbar_mini"><![CDATA[Toolbar buttons for mini editor]]></string>
-    <string name="_bx_froala_option_toolbar_mini_mobile"><![CDATA[Toolbar buttons for mini editor (mobile)]]></string>
-    <string name="_bx_froala_option_toolbar_standard"><![CDATA[Toolbar buttons for standard editor]]></string>
-    <string name="_bx_froala_option_toolbar_standard_mobile"><![CDATA[Toolbar buttons for standard editor (mobile)]]></string>
-    <string name="_bx_froala_option_toolbar_full"><![CDATA[Toolbar buttons for full editor]]></string>
-    <string name="_bx_froala_option_toolbar_full_mobile"><![CDATA[Toolbar buttons for full editor (mobile)]]></string>
-
-    <string name="_bx_froala_txt_skin_dark"><![CDATA[Dark]]></string>
-    <string name="_bx_froala_txt_skin_gray"><![CDATA[Gray]]></string>
-    <string name="_bx_froala_txt_skin_royal"><![CDATA[Royal]]></string>
 
     <string name="_bx_froala_information"><![CDATA[Information]]></string>
-    <string name="_bx_froala_information_block"><![CDATA[This is <a target="_blank" href="https://www.froala.com/wysiwyg-editor">Froala editor</a> integration.<br />
-        <a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/plugins">List of plugins</a><br />
-        <a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options#toolbarButtons">List of buttons</a>]]></string>
+    <string name="_bx_froala_information_block"><![CDATA[The Froala editor isn't supported anymore. UNA default editor is free and has all Froala features and even more. <b>Froala module has to be remain installed to preserve files uploaded directly into  the editor</b> if you used Froala before.]]></string>
 </resources>

+ 0 - 17
modules/boonex/froala/install/sql/disable.sql

@@ -1,18 +1 @@
 
--- Settings
-
-DELETE FROM `top`, `toc`, `to` USING `sys_options_types` AS `top` LEFT JOIN `sys_options_categories` AS `toc` ON `top`.`id`=`toc`.`type_id` LEFT JOIN `sys_options` AS `to` ON `toc`.`id`=`to`.`category_id` WHERE `top`.`name` = 'bx_froala';
-
--- Editor
-
-DELETE FROM `sys_objects_editor` WHERE `object` = 'bx_froala';
-
-UPDATE `sys_options` SET `value` = 'sys_quill' WHERE `name` = 'sys_editor_default';
-
--- Injections
-
-DELETE FROM `sys_injections` WHERE `name` IN('bx_froala');
-
--- Preloader
-
-DELETE FROM `sys_preloader` WHERE `module` = 'bx_froala';

+ 0 - 42
modules/boonex/froala/install/sql/enable.sql

@@ -1,43 +1 @@
 
--- Settings
-
-SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
-INSERT INTO `sys_options_types` (`group`, `name`, `caption`, `icon`, `order`) VALUES 
-('modules', 'bx_froala', '_bx_froala_adm_stg_cpt_type', 'bx_froala@modules/boonex/froala/|std-icon.svg', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));
-SET @iTypeId = LAST_INSERT_ID();
-
-INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )  
-VALUES (@iTypeId, 'bx_froala_general', '_bx_froala_adm_stg_cpt_category_general', 1);
-SET @iCategId = LAST_INSERT_ID();
-
-INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
-('bx_froala_license_key', '', @iCategId, '_bx_froala_option_license_key', 'digit', '', '', '', 1),
-('bx_froala_icons_template', 'svg', @iCategId, '_bx_froala_option_icons_template', 'select', 'svg,font_awesome_5,text', '', '', 5),
-('bx_froala_option_plugins', 'emoticons,embedly,draggable,fullscreen,image,link', @iCategId, '_bx_froala_option_plugins', 'digit', '', '', '', 10),
-
-('bx_froala_option_toolbar_mini', "{'moreText': {'buttons': ['bold', 'italic', 'underline','quote'],'buttonsVisible': 2},'moreRich': {'buttons': ['insertLink', 'insertImage','emoticons', 'embedly'],'buttonsVisible': 2},'moreMisc': {'buttons': ['undo', 'redo', 'fullscreen'],'align': 'right','buttonsVisible': 0}}", @iCategId, '_bx_froala_option_toolbar_mini', 'digit', '', '', '', 20),
-('bx_froala_option_toolbar_mini_mobile', "{'moreText': {'buttons': ['bold', 'italic', 'underline','quote'],'buttonsVisible': 0},'moreRich': {'buttons': ['insertLink', 'insertImage','emoticons', 'embedly'],'buttonsVisible': 0},'moreMisc': {'buttons': ['undo', 'redo', 'fullscreen'],'align': 'right','buttonsVisible': 0}}", @iCategId, '_bx_froala_option_toolbar_mini_mobile', 'digit', '', '', '', 21),
-
-('bx_froala_option_toolbar_standard', "{'moreText': {'buttons': ['bold', 'italic', 'underline','alignLeft', 'alignCenter', 'alignRight', 'formatOL', 'formatUL','insertLink', 'insertImage'],'buttonsVisible': 40},'moreMisc': {'buttons': [ 'fullscreen', 'html'],'align': 'right','buttonsVisible': 2}}", @iCategId, '_bx_froala_option_toolbar_standard', 'digit', '', '', '', 22),
-('bx_froala_option_toolbar_standard_mobile', "{'moreText': {'buttons': ['bold', 'italic', 'underline', 'clearFormatting'],'buttonsVisible': 0},'moreParagraph': {'buttons': ['alignLeft', 'alignCenter', 'alignRight', 'formatOL', 'formatUL', 'paragraphFormat', 'outdent', 'indent', 'quote'],'buttonsVisible': 0},'moreRich': {'buttons': ['insertLink', 'insertImage','emoticons', 'embedly'],'buttonsVisible': 0},'moreMisc': {'buttons': ['undo', 'redo', 'fullscreen', 'html'],'align': 'right','buttonsVisible': 2}}", @iCategId, '_bx_froala_option_toolbar_standard_mobile', 'digit', '', '', '', 23),
-
-('bx_froala_option_toolbar_full', "{'moreText': {'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'clearFormatting'], 'buttonsVisible': 5}, 'moreParagraph': {'buttons': ['alignLeft', 'alignCenter', 'alignRight', 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'outdent', 'indent', 'quote']}, 'moreRich': {'buttons': ['insertLink', 'insertImage','emoticons', 'embedly', 'insertHR'], 'buttonsVisible': 5}, 'moreMisc': {'buttons': ['undo', 'redo', 'fullscreen', 'html'], 'align': 'right', 'buttonsVisible': 2}}", @iCategId, '_bx_froala_option_toolbar_full', 'digit', '', '', '', 24),
-('bx_froala_option_toolbar_full_mobile', "{'moreText': {'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'clearFormatting'], 'buttonsVisible': 0}, 'moreParagraph': {'buttons': ['alignLeft', 'alignCenter', 'alignRight', 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'outdent', 'indent', 'quote'], 'buttonsVisible': 0}, 'moreRich': {'buttons': ['insertLink', 'insertImage','emoticons', 'embedly', 'insertHR'], 'buttonsVisible': 0}, 'moreMisc': {'buttons': ['undo', 'redo', 'fullscreen', 'html'], 'align': 'right', 'buttonsVisible': 2}}", @iCategId, '_bx_froala_option_toolbar_full_mobile', 'digit', '', '', '', 25);
-
--- Editor
-
-INSERT INTO `sys_objects_editor` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
-('bx_froala', 'Froala', 'gray', 'BxFroalaEditor', 'modules/boonex/froala/classes/BxFroalaEditor.php');
-
-UPDATE `sys_options` SET `value` = 'bx_froala' WHERE `name` = 'sys_editor_default';
-
--- Injections
-
-INSERT INTO `sys_injections` (`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
-('bx_froala', 0, 'injection_footer', 'service', 'a:2:{s:6:"module";s:9:"bx_froala";s:6:"method";s:9:"injection";}', 0, 1);
-
--- Preloader
-
-SET @iMaxOrder = (SELECT `order` FROM `sys_preloader` WHERE `type` = 'css_system' ORDER BY `order` DESC LIMIT 1);
-INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES
-('bx_froala', 'css_system', 'modules/boonex/froala/plugins/froala/css/|froala_style.min.css',  '1',  @iMaxOrder + 1);

+ 1 - 18
modules/boonex/russian/data/langs/bx_froala/ru.xml

@@ -4,24 +4,7 @@
     <string name="_bx_froala"><![CDATA[Froala]]></string>
 
     <string name="_bx_froala_setting"><![CDATA[Настройки Froala]]></string>
-    <string name="_bx_froala_adm_stg_cpt_type"><![CDATA[Froala]]></string>
-    <string name="_bx_froala_adm_stg_cpt_category_general"><![CDATA[Основные]]></string>
-    <string name="_bx_froala_option_license_key"><![CDATA[Лицензионный ключ]]></string>
-    <string name="_bx_froala_option_icons_template"><![CDATA[Шаблон иконок]]></string>
-    <string name="_bx_froala_option_plugins"><![CDATA[Плагины]]></string>
-    <string name="_bx_froala_option_toolbar_mini"><![CDATA[Кнопки панели инструментов для мини-редактора]]></string>
-    <string name="_bx_froala_option_toolbar_mini_mobile"><![CDATA[Кнопки панели инструментов для мини-редактора для мобильного]]></string>
-    <string name="_bx_froala_option_toolbar_standard"><![CDATA[Кнопки панели инструментов для стандартного редактора]]></string>
-    <string name="_bx_froala_option_toolbar_standard_mobile"><![CDATA[Кнопки панели инструментов для стандартного редактора для мобильного]]></string>
-    <string name="_bx_froala_option_toolbar_full"><![CDATA[Кнопки панели инструментов для полного редактора]]></string>
-    <string name="_bx_froala_option_toolbar_full_mobile"><![CDATA[Кнопки панели инструментов для полного редактора для мобильного]]></string>
-
-    <string name="_bx_froala_txt_skin_dark"><![CDATA[Темная]]></string>
-    <string name="_bx_froala_txt_skin_gray"><![CDATA[Серая]]></string>
-    <string name="_bx_froala_txt_skin_royal"><![CDATA[Королевская]]></string>
 
     <string name="_bx_froala_information"><![CDATA[Информация]]></string>
-    <string name="_bx_froala_information_block"><![CDATA[Это интеграция<a target="_blank" href="https://www.froala.com/wysiwyg-editor">редактора Froala</a>.<br />
-	<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/plugins">Список плагинов</a><br />
-	<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options#toolbarButtons">Список кнопок</a>]]></string>
+    <string name="_bx_froala_information_block"><![CDATA[Froala редактор больше не поддерживается. Редактор по умолчанию бесплатен и имеет все функции Froala и даже больше. <b>Модуль Froala должен оставаться установленным, чтобы сохранить файлы загруженные непосредственно в редактор</b>, если вы использовали Froala раньше.]]></string>
 </resources>