fix cover image when edit a page, autosize for tinymce
This commit is contained in:
parent
74d5833aaa
commit
541cb1cec3
|
@ -51,7 +51,7 @@
|
||||||
// Cover image
|
// Cover image
|
||||||
echo Bootstrap::formInputHidden(array(
|
echo Bootstrap::formInputHidden(array(
|
||||||
'name'=>'coverImage',
|
'name'=>'coverImage',
|
||||||
'value'=>$page->coverImage()
|
'value'=>$page->coverImage(false)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<img id="jscoverImagePreview" style="width: 350px; height: 200px;" class="img-thumbnail" alt="coverImagePreview" src="<?php echo HTML_PATH_ADMIN_THEME_IMG ?>default.svg" />
|
<img id="jscoverImagePreview" style="width: 350px; height: 200px;" class="img-thumbnail" alt="coverImagePreview" src="<?php echo (empty($coverImage) ? HTML_PATH_ADMIN_THEME_IMG.'default.svg' : $page->coverImage() ) ?>" />
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo Bootstrap::formTitle(array('title'=>$L->g('External Cover image')));
|
echo Bootstrap::formTitle(array('title'=>$L->g('External Cover image')));
|
||||||
|
|
|
@ -103,6 +103,8 @@ tinymce.init({
|
||||||
theme: "modern",
|
theme: "modern",
|
||||||
skin: "bludit",
|
skin: "bludit",
|
||||||
min_height: $min_height,
|
min_height: $min_height,
|
||||||
|
autoresize_min_height: $min_height,
|
||||||
|
autoresize_bottom_margin: 10,
|
||||||
max_height: 1000,
|
max_height: 1000,
|
||||||
element_format : "html",
|
element_format : "html",
|
||||||
entity_encoding : "raw",
|
entity_encoding : "raw",
|
||||||
|
|
|
@ -510,7 +510,7 @@ function install($adminPassword, $timezone)
|
||||||
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
|
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
|
||||||
'toolbar2'=>'',
|
'toolbar2'=>'',
|
||||||
'mobileToolbar'=>'bold italic bullist formatselect',
|
'mobileToolbar'=>'bold italic bullist formatselect',
|
||||||
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
|
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern autoresize'
|
||||||
),
|
),
|
||||||
JSON_PRETTY_PRINT),
|
JSON_PRETTY_PRINT),
|
||||||
LOCK_EX
|
LOCK_EX
|
||||||
|
|
Loading…
Reference in New Issue