We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Custom Styles Drop Down in TinyMCE WYSIWYG Editor

Development and Programming

HoneyWeb's avatar
HoneyWeb
23 posts
16 years ago
HoneyWeb's avatar HoneyWeb

I have been trying and can’t for the life of me work out where I am to put the following code and in what file to get the Styles drop down to come in to the editor.

tinyMCE.init({
    style_formats : [
        {title : 'Bold text', inline : 'b'},
        {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
        {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
        {title : 'Example 1', inline : 'span', classes : 'example1'},
        {title : 'Example 2', inline : 'span', classes : 'example2'},
        {title : 'Table styles'},
        {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
    ]
});

I found the example editors and plugged the code in there and it works - http://ecoplus.honeyweb.com.au/scripts/tinymce/examples/full.html

Just need it for the live site.

Can someone help me please?

p.s. I am open to better suggestions too 😛

Moved to the Extensions forum by Moderator

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Just a quick note to mention that we don’t provide direct support for third party addons. Moved to Extensions forum.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.