Copied to clipboard

Flag this post as spam?

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


  • dannychan 2 posts 22 karma points
    Oct 17, 2011 @ 15:23
    dannychan
    0

    stop tinymctoe to remove <b> tag from HTML

    Hello,

    When I put HTML code using HTML button from tinymce editor, It remove <b> tag markup. I want to stop tinymce for doing this. Can any one help me please?

    - Danny

     

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 17, 2011 @ 15:28
    Dirk De Grave
    0

    dannychan,

    Have you tried pasting <strong> instead of <b>?

    If you really want the <b> tag, you can configure tiny mce to allow these tags (Must find the configuration file for tiny mce and add the bold tag to the set of allowed tags

    Cheers,

    /Dirk

  • Rodion Novoselov 694 posts 859 karma points
    Oct 17, 2011 @ 15:32
    Rodion Novoselov
    0

    Hi, Danny. The key to getting what you want is described here:

    http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/allow-any-markup-in-the-tinymce-editor

    In your case you just need not to clear the 'validElements' setting completely but to modify it to your requirements (e.g. to add the tags that you want to be allowed).


  • Rodion Novoselov 694 posts 859 karma points
    Oct 17, 2011 @ 15:35
    Rodion Novoselov
    0

    And yes, Dirk is absolutely right - I'd better avoid using such tags as <b>, <i>, <font>, etc replacing them with CSS - they're all rather outdated.

  • dannychan 2 posts 22 karma points
    Oct 19, 2011 @ 06:06
    dannychan
    0

    Many thanks to all of you for a kind support!

Please Sign in or register to post replies

Write your reply to:

Draft