New Menu V8 for Images and improves on cover images

This commit is contained in:
dignajar 2016-02-09 20:18:00 -03:00
parent bfa4756bf4
commit 34fff17d03
3 changed files with 5 additions and 7 deletions

View File

@ -242,11 +242,6 @@ $(document).ready(function() {
echo $html; echo $html;
} }
public static function formButtonSubmit($args)
{
$html = '';
}
public static function bluditQuickImages() public static function bluditQuickImages()
{ {
// Javascript code // Javascript code

View File

@ -231,5 +231,6 @@
"click-on-the-image-for-options": "Click on the image for options.", "click-on-the-image-for-options": "Click on the image for options.",
"set-as-cover-image": "Set as cover image", "set-as-cover-image": "Set as cover image",
"delete-image": "Delete image" "delete-image": "Delete image",
"image-description": "Image description"
} }

View File

@ -77,6 +77,7 @@ class pluginsimpleMDE extends Plugin {
public function adminBodyEnd() public function adminBodyEnd()
{ {
global $layout; global $layout;
global $Language;
$html = ''; $html = '';
@ -105,8 +106,9 @@ class pluginsimpleMDE extends Plugin {
simplemde.value(text + content + "\n"); simplemde.value(text + content + "\n");
}'.PHP_EOL; }'.PHP_EOL;
// This function is necesary on each Editor, it is used by Bludit Images v8.
$html .= 'function editorAddImage(filename) { $html .= 'function editorAddImage(filename) {
addContentSimpleMDE("![alt text]("+filename+")"); addContentSimpleMDE("!['.$Language->get('Image description').']("+filename+")");
}'.PHP_EOL; }'.PHP_EOL;
$html .= '$(document).ready(function() { '.PHP_EOL; $html .= '$(document).ready(function() { '.PHP_EOL;