Support » Plugins » Using Cufon in TinyMCE

  • I’m editing my editor-style.css to make TinyMCE look like the front end, but I’m wondering what the best way is to get the Cufon things to show up as well. I’m not using any sort of Cufon plugin – it’s hard coded into the templates. Is there a better way than hacking the TinyMCE files themselves? Sounds to me like that won’t allow for graceful upgrades.

    Let me know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Kathryn


    Automattic Happiness Engineer

    Do you really need your Cufon-ified text showing in the editor? I would think it’s likely a lot more trouble than it’s worth. 😉

    Hi KGarrett,

    have you found a way to add cufon to TinyMCE editor field?
    I’m trying to do the same thing, i am using the tintMce “style” dropdown menu to add my cufon class to the text, and i add my cufon js call (the sames used in my theme for the front) in admin header with this code in my function.php :

    function addCufonToAdmin() {
        $templatePath = get_template_directory_uri();
    		<script src="'.$templatePath.'/js/cufon/cufon-yui.js" type="text/javascript"></script>
    		<script src="'.$templatePath.'/js/cufon/myfont.js" type="text/javascript"></script>
    			 Cufon.replace(".myCustomCufonText", {fontFamily: "myfont"});

    but it dont seems to work, even when i reload the page.
    I’ve added the same way the code to the admin footer page, i’ve also tried to add a custom button to tinYMCE to manualy launch the cufon refresh but nothing change in the editor. Maybe the js hook should be added to tinymec instead of admin header… duno..

    i keep trying things, does someone have a clue ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Cufon in TinyMCE’ is closed to new replies.