From a07a0fe346298deca4f749966f896f436cff19ff Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 18 Oct 2018 22:48:18 +0200 Subject: [PATCH] remove comment --- bl-kernel/abstract/dblist.class.php | 1 - bl-plugins/simplemde/css/bludit.css | 2 +- bl-plugins/simplemde/plugin.php | 6 +++--- bl-plugins/tinymce/plugin.php | 5 ++--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bl-kernel/abstract/dblist.class.php b/bl-kernel/abstract/dblist.class.php index 3d7c8e4d..26f7293a 100644 --- a/bl-kernel/abstract/dblist.class.php +++ b/bl-kernel/abstract/dblist.class.php @@ -46,7 +46,6 @@ class dbList extends dbJSON // Returns all the items from the list if ($numberOfItems==-1) { - // Invert keys to values, is necesary returns as key the key pages return $list; } diff --git a/bl-plugins/simplemde/css/bludit.css b/bl-plugins/simplemde/css/bludit.css index 17cd9bd0..c03b8ab8 100644 --- a/bl-plugins/simplemde/css/bludit.css +++ b/bl-plugins/simplemde/css/bludit.css @@ -1,4 +1,4 @@ .editor-toolbar { background: #f1f1f1; border-radius: 0 !important; } .editor-toolbar::before { margin-bottom: 2px !important } .editor-toolbar::after { margin-top: 2px !important } -.CodeMirror, .CodeMirror-scroll { min-height: 450px !important; border-radius: 0 !important; } +.CodeMirror, .CodeMirror-scroll { flex:1; border-radius: 0 !important; } diff --git a/bl-plugins/simplemde/plugin.php b/bl-plugins/simplemde/plugin.php index c4ad921f..b987736d 100644 --- a/bl-plugins/simplemde/plugin.php +++ b/bl-plugins/simplemde/plugin.php @@ -76,14 +76,14 @@ class pluginsimpleMDE extends Plugin { simplemde.codemirror.refresh(); }'.PHP_EOL; - // Function required for Autosave function // Returns the content of the editor + // Function required for Bludit $html .= 'function editorGetContent(content) { return simplemde.value(); }'.PHP_EOL; - // Function required for Media Manager - // Insert an image on the editor in the cursor position + // Insert an image in the editor in the cursor position + // Function required for Bludit $html .= 'function editorInsertMedia(filename) { addContentSimpleMDE("!['.$L->get('Image description').']("+filename+")"); }'.PHP_EOL; diff --git a/bl-plugins/tinymce/plugin.php b/bl-plugins/tinymce/plugin.php index da8b29c6..cb60a141 100644 --- a/bl-plugins/tinymce/plugin.php +++ b/bl-plugins/tinymce/plugin.php @@ -52,14 +52,13 @@ class pluginTinymce extends Plugin { public function adminBodyEnd() { + global $L; + // Load the plugin only in the controllers setted in $this->loadOnController if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) { return false; } - // Load object $language - global $L; - $toolbar1 = $this->getValue('toolbar1'); $toolbar2 = $this->getValue('toolbar2'); $content_css = $this->htmlPath().'css/tinymce.css';