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;
}
public static function formButtonSubmit($args)
{
$html = '';
}
public static function bluditQuickImages()
{
// Javascript code

View File

@ -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"
}

View File

@ -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;