Copied to clipboard

Flag this post as spam?

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


  • nelsenlim 70 posts 71 karma points
    Mar 24, 2011 @ 05:44
    nelsenlim
    0

    tinyMCE Format Dropdown

    http://tinymce.moxiecode.com/tryit/full.php

    Hi i want the format dropdown in the above link.
    Have been googling around and can't find any clue.
    What should i do with the config/tinyMceConfig.config

    Basically I want to grant the users the ability to change a paragraph into a <H1> element for example.
    I know i can achieve the same style with CSS but this is the client request.
    Is it possible to implement this in umbraco?

    It would be very helpful if you can drop me your modified config/tinyMceConfig.config so i can compare it with the standard ones I get from umbraco


    Thank u

  • Daniel Bardi 923 posts 2554 karma points
    Mar 24, 2011 @ 06:53
    Daniel Bardi
    0

    You can simulate this with an empty style for the Style dropdown in the tinyMCE editor...

    • Right-click your primary stylesheet and select create... this will allow creating of an editor style to be used in the Style dropdown of tinyMCE.
    • Create the H1 style tag, but leave it empty or just enter something (i.e. display:block;) Name the style and save it.
    • Goto the RTE datatype and select the stylesheet you added in the previous steps and save the datatype. (make sure you are display the style dropdown also)
    • Now you will have a style dropdown on the RTE editor with your new style.. 
    • Select your text in the editor, then select your new style... Viola!
    Hope this helps..
    BTW.. The format menu was left out by design; you can add a format dropdown by editing the tinyMCE plugin, but the entire reason for a CMS (in my opinion) is to seperate content from formatting.. you don't realy want users to changing format, only changing content.. let the designers allowed styles be available only.
  • nelsenlim 70 posts 71 karma points
    Mar 25, 2011 @ 03:54
    nelsenlim
    0

    Great, i didn't know that
    I thought the only thing the style does is add a class attribute.
    Thx a lot :)

  • Daniel Bardi 923 posts 2554 karma points
    Mar 25, 2011 @ 05:19
    Daniel Bardi
    0

    Your welcome... you can have class, id, and tag attributes.

    The select content should wrap inside a tag if you use a tag attribute.

  • Biagio Paruolo 1492 posts 1633 karma points c-trib
    Aug 30, 2013 @ 17:10
    Biagio Paruolo
    0

    For me it works if only I call stylesheet file TinyMCE ( U.6.1.3 )

Please Sign in or register to post replies

Write your reply to:

Draft