New Menu V8 for Images and improves on cover images
This commit is contained in:
parent
bfa4756bf4
commit
34fff17d03
@ -242,11 +242,6 @@ $(document).ready(function() {
|
||||
echo $html;
|
||||
}
|
||||
|
||||
public static function formButtonSubmit($args)
|
||||
{
|
||||
$html = '';
|
||||
}
|
||||
|
||||
public static function bluditQuickImages()
|
||||
{
|
||||
// Javascript code
|
||||
|
@ -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"
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user