Alternative method of getting styles into TinyMCE dropdown
Hi All,
I want to get my styles into the TinyMCE style drop-down, but not using Umbraco. I want to place it in the tinyMCE.init event.
Why?
Turns out a @font-face item (that has data storing the font info attached to it) in one of our stylesheets is causing any pages that use the TinyMCE editor to load very slowly, while the processor spikes to 100% every time we click on a content node to load one. I'm wondering if there's some sort of compression that Umbraco does on the CSS before it loads into the editor. To see if this is the issue, I wanted to bypass Umbraco completely to get the stylesheet into the editor, but I have no idea what files to edit. The actual JavaScript code to do this is simple:
Alternative method of getting styles into TinyMCE dropdown
Hi All,
I want to get my styles into the TinyMCE style drop-down, but not using Umbraco. I want to place it in the tinyMCE.init event.
Why?
Turns out a @font-face item (that has data storing the font info attached to it) in one of our stylesheets is causing any pages that use the TinyMCE editor to load very slowly, while the processor spikes to 100% every time we click on a content node to load one. I'm wondering if there's some sort of compression that Umbraco does on the CSS before it loads into the editor. To see if this is the issue, I wanted to bypass Umbraco completely to get the stylesheet into the editor, but I have no idea what files to edit. The actual JavaScript code to do this is simple:
But I get easily lost in large amounts of files, and don't know where to put it. ;)
Any takers? I've found a bunch of files containing TinyMCE-related JavaScript, but none that call the .init method.
Thanks,
Jay
is working on a reply...