Is it possible to add custom styles and classes in drop down menu in wysiwyg editor in magento! I have enclosed the picture for better explanation.
WYSIWYG Custom Styles in Magento
wysiwyg
Related Topic
- Magento Widget – Add WYSIWYG Editor to Custom Widget
- Magento – WYSIWYG editor for transactional emails
- Magento – How to add wysiwyg editor to custom frontend form of custom module in Magento1.9
- Magento – How to create custom category attribute with wysiwyg editor in magento2
- Magento – Magento 2 Add widget using WYSIWYG field in a custom widget
Best Answer
Sometimes it is not always necessary to extend Magento as per The Correct Way. In this case, if you simply want to customise the editor and get back to being focused on the product catalogue, you can simply edit js/mage/adminhtml/wysiwyg/tiny_mce/setup.js and add your style selection in
var settings
(line 97):This will now mean you have one style, 'Source Code'.
http://www.tinymce.com/wiki.php/Configuration:style_formats
Next time that Magento is upgraded you will lose your customisations. When you upgrade you can simply put the styles back in or you can put together a whole module load of stuff to do this The Proper Magento Way.