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;
|
echo $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function formButtonSubmit($args)
|
|
||||||
{
|
|
||||||
$html = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function bluditQuickImages()
|
public static function bluditQuickImages()
|
||||||
{
|
{
|
||||||
// Javascript code
|
// Javascript code
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue