From 34fff17d039d027dafa4adbad37ea55821da15c0 Mon Sep 17 00:00:00 2001 From: dignajar Date: Tue, 9 Feb 2016 20:18:00 -0300 Subject: [PATCH] New Menu V8 for Images and improves on cover images --- bl-kernel/admin/themes/default/init.php | 5 ----- bl-languages/en_US.json | 3 ++- bl-plugins/simplemde/plugin.php | 4 +++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bl-kernel/admin/themes/default/init.php b/bl-kernel/admin/themes/default/init.php index a42dbdb2..dcfed7e1 100644 --- a/bl-kernel/admin/themes/default/init.php +++ b/bl-kernel/admin/themes/default/init.php @@ -242,11 +242,6 @@ $(document).ready(function() { echo $html; } - public static function formButtonSubmit($args) - { - $html = ''; - } - public static function bluditQuickImages() { // Javascript code diff --git a/bl-languages/en_US.json b/bl-languages/en_US.json index 3c01ccfa..588d1bee 100644 --- a/bl-languages/en_US.json +++ b/bl-languages/en_US.json @@ -231,5 +231,6 @@ "click-on-the-image-for-options": "Click on the image for options.", "set-as-cover-image": "Set as cover image", - "delete-image": "Delete image" + "delete-image": "Delete image", + "image-description": "Image description" } \ No newline at end of file diff --git a/bl-plugins/simplemde/plugin.php b/bl-plugins/simplemde/plugin.php index 1e4f2b28..61d53830 100644 --- a/bl-plugins/simplemde/plugin.php +++ b/bl-plugins/simplemde/plugin.php @@ -77,6 +77,7 @@ class pluginsimpleMDE extends Plugin { public function adminBodyEnd() { global $layout; + global $Language; $html = ''; @@ -105,8 +106,9 @@ class pluginsimpleMDE extends Plugin { simplemde.value(text + content + "\n"); }'.PHP_EOL; + // This function is necesary on each Editor, it is used by Bludit Images v8. $html .= 'function editorAddImage(filename) { - addContentSimpleMDE("![alt text]("+filename+")"); + addContentSimpleMDE("!['.$Language->get('Image description').']("+filename+")"); }'.PHP_EOL; $html .= '$(document).ready(function() { '.PHP_EOL;