0

This option allows you to set a rule for empty elements being valid.Default settings will currently remove these empty elements from the code after you save. Example:

Solution

Step1 : Go to js folder in root of your magento installation

js/mage/adminhtml/wysiwyg/tiny_mce/setup.js

Step2 :

Once you have this file open do a search for “var settings = {“. then add following line

extended_valid_elements: '+a[],+span[]',

+a[*] is example but you use any html element that disappearing after save.

1
  • Why have you put same content in question and answer both? Jul 19, 2016 at 3:58

1 Answer 1

0

This option allows you to set a rule for empty elements being valid.Default settings will currently remove these empty elements from the code after you save. Example:

Solution

Step1 : Go to js folder in root of your magento installation

js/mage/adminhtml/wysiwyg/tiny_mce/setup.js

Step2 :

Once you have this file open do a search for “var settings = {“. then add following line

extended_valid_elements: '+a[],+span[]',

+a[*] is example but you use any html element that disappearing after save.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.