Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormista3
    • CommentTimeMay 29th 2006 edited
     permalink
    Hi folks,

    I want to add a simple button to the WYSIWYG editor in Wordpresss, that wraps the selected text in a particular style (ie applies a span tag to it, with a class of say 'mp3link')

    I'm found a TinyMCE plugin called tinyMCE div and have downloaded it and put into the TinyMCE plugins folder.

    Now I'm trying to initiate this using my own plugin - but don't understand the syntax for the 'tinymce_plugins' action in Wordpress.

    I know that I'm way off, but I'm using the code below for my plugin, how should I be doing it?

    add_action('tinymce_plugins', 'add_divselect_to_tinyMCE');
    function add_divselect_to_tinyMCE()
    {
    plugins = new Array("divselect");
    return plugins;
    }'


    Thanks for your time.
Add your comments
    Username Password
  • Format comments as (Help)