nathancox / silverstripe-customhtmleditorfield

A couple of hacks to allow per-editor content styles and TinyMCE configurations in SilverStripe 3
16 stars 8 forks source link

customScripts not sent with pages loaded via AJAX #4

Closed nathancox closed 11 years ago

nathancox commented 12 years ago

Normally TinyMCE config is loaded manually on LeftAndMain::init() so it's there no matter which page of the CMS you start from.

This means you can't add or modify HTMLEditorConfigs in getCMSFields.

Two options:

1) find a place to define all configs up front and have them loaded in init():

But where (besides _config.php) can you do that? Or is it supposed to be in _config? Doesn't seem tidy to me

2) find a way to have customScripts sent in the page load ajax response.