Last time I used it at timeout.com we had a few limits that we had to hack around, they seem to have cleanly added these thing in now. So I'll talk about what I found.
- Making images not have full urls
- You can valid your own set of tags and strip out ones you do not what.
- Add in predifined lists of links, images, css tags
- Overlay your own css, as would be in the site.
Making images not have full urls
You can valid your own set of tags and strip out ones you do not what.
For us default a tags "target" to "_blank"
This example string tells TinyMCE to remove all elements that are not a "a, strong, div or br" element, convert "b" elements to "strong" elements, default "target" to "_blank" and keep the "href", "target" and "align" attributes of the elements.
valid_elements : "a[href|target=_blank],strong/b,div[align],br"
Add in predifined lists of links, images, css tags
Again to have an external js file that was full of links for the editor and could be built on the fly either from common site links or other data for that story (they have entered an actor so the list has links to all his related films) would have given some quick help and less errors.
This option enables you to have an external list of links, which can be generated by a server side page and then inserted into the link dialog windows of TinyMCE. The links can be to internal site documents or external URLs.
Example of usage of the external_link_list_url option:
external_link_list_url : "myexternallist.js"
Example of a external link list file: (myexternallist.js)
var tinyMCELinkList = new Array(
// Name, URL
Catching sumit or button comands for custom events.
This would have been good for our custom popups or to do some checking before submiting the form. Also could be used to block some buttons i.e fonts, to some access levels.