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();
echo'
<script src="'.$templatePath.'/js/cufon/cufon-yui.js" type="text/javascript"></script>
<script src="'.$templatePath.'/js/cufon/myfont.js" type="text/javascript"></script>
<script>
Cufon.replace(".myCustomCufonText", {fontFamily: "myfont"});
</script>
';
}
add_action('admin_head','addCufonToAdmin');
but it dont seems to work, even when i reload the page.
I’ve added the same way the cufon.now() 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 ?