Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay Dobson 75 posts 121 karma points
    Mar 15, 2011 @ 21:45
    Jay Dobson
    0

    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:

    tinyMCE.init({
           
    ...
            content_css
    : "/mycontent.css"    // resolved to http://domain.mine/mycontent.css
    });

    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

Please Sign in or register to post replies

Write your reply to:

Draft