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

Get rid of CustomHTMLEditorField? #1

Closed nathancox closed 12 years ago

nathancox commented 12 years ago

Is there a way to do this by decorating HTMLEditorField and/or extending LeftAndMain::init() to create all the javascript etc automatically?

nathancox commented 12 years ago

Can't really use LeftAndMain::init() since it's called before editors/configs are defined.

Might be able to to it all with just an HTMLEditorField decorator and triggering JS inclusion only on setConfigID() actually since I think the fallbacks are working fine when that's not called.