mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #87 from PutmanMedia/pulls/tinymce-fix
Fix BlogHolder::BlogEntryForm() to call tinyMCE.init() if required
This commit is contained in:
commit
6c1dc6fc87
@ -235,6 +235,8 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
|
||||
if(BlogEntry::$allow_wysiwyg_editing) {
|
||||
$contentfield = new HtmlEditorField("BlogPost", _t("BlogEntry.CN"));
|
||||
// Force tinymce to init - otherwise Requirements::set_suffix_requirements() stops the init() call
|
||||
Requirements::customScript("tinyMCE.init(ssTinyMceConfig);", "blog_post_tinyMCE_config");
|
||||
} else {
|
||||
$contentfield = new CompositeField(
|
||||
new LiteralField("BBCodeHelper","<a id=\"BBCodeHint\" target='new'>"._t("BlogEntry.BBH")."</a><div class='clear'><!-- --></div>" ),
|
||||
|
Loading…
Reference in New Issue
Block a user