CakeDC/TinyMCE — pull request #21 by func0der (2013-04-09 09:12:20+00:00)
Title: Tweaked TinyMCEHelper

Hey,

thanks for your plugin.
I found it a great way to include TinyMCE, but I needed some changes in the code and thought they may be come in handy for ohters.

**Made it possible to load a config AND apply additional settings for the editor (usefull for language settings)**
Like already said, language setting is a great proof of concept for this one. Magic takes places in the TinyMCEHelper::editor() method.

**Made it possible to return the tinyMCE javascript code as a string or as an inline script block**
I forgot that one in the commit comment, but it helped me out since I wanted to wrap the whole thing in another javascript method which is called on demand to spare some memory on client side.

**Added method to manage the no editor class**
Like mentioned above I wrapped the whole thing in a javascript method. I needed to exclude some textareas and wanted to keep things centralized.
The whole getting method works with single classes only. Since it is centralized regex won't be needed anyway, so I think this is fine.

**Changed config paths**
This is kind of a personal thing. I want to keep things as identifiable as possible. So I created another array called "Plugins" in the configuration to store plugin configuration in there.

Discuss ^^

Greetings
func0der