Tuesday 13 August 2013

Allow specific tags in WYSIWYG editor.

By default magento WYSIWYG editor will strip certain tags from the editor. To allow your tags in WYSIWYG editor you must edit the file under the path 

js/adminhtml/wysiwyg/tiny_mice/setup.js

1. Find var settings = { line and 
2. Add extended_valid_elements : 'nav[style|id|class]'.

In my case i have allowed <nav> tag, and am allowing the attributes style, id etc. Now the nav tag wont be stripped when you add it in admin WYSIWYG editor.

No comments:

Post a Comment