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?
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
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).
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
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
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).
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.
Many thanks to all of you for a kind support!
is working on a reply...