Seems like a pretty complex chunk of code to be trying to jam into the WYSIWYG editor. Stick to the basic headers, paragaphs, unordered lists, etc, and put stuff like that in the template. It really doesn't belong in the editor. That's not really what it's for. Even if it did work, you're running the risk of some frustrated client accidentally blowing the whole thing away or removing part of it.
Just thinking about it gives me a headache. Make a new template with the SWF attached to the page as a related object. Much cleaner.
29 March 2009 at 8:35am
I think editor or silverstripe definittely alters the code...
I've styled tags and classes on a css file to appear the way i like it.
The code i enter on the editor begins with an IMG tag... but silverstripe insists to add a <p> tag surrounding the <img> tag, and i don't want that. Can i turn off that feature? because i don't want my code to be changed, i already take care that my code looks good.
22 September 2009 at 6:57am
I am just wanting to add a simple "rel"='lighthouse' takg to the "<AREA...." code and have updated tiny_mce.js but it still won't let me. Keeps removing it. It allows the tag after a <A ...... Any ideas?
That will remove the sapphiremce_cleanup function that removes all on* events, it also does more so you might want to take a look and decide if you'll miss any of that. I usually recommend creating a new "HTML Editor Configuration" for power users and leave the default "cms" config in tact.