mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix PUT-221 - BlogEntryForm needs an explicit call to Requirements::javascript() when Requirements::set_suffix_requirements(true) is called.
This commit is contained in:
parent
5e9e8e4e8c
commit
a15bc7a75d
@ -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