Hi guys,
I am using Magento 2 Community edition.
I have created some attributes, which use WYSIWYG editor.
My problem is that these attributes are showing html code by default on the product edit page when I login into the admin backend.
How can I show the formatted content by default on the admin panel?
Thank you guys,
Tom
Solved! Go to Solution.
Well after doing some resarch on it - i found that by default there is no way to enable wysiwyg editor default on the product attribute page.
if its cms page then magento 2 have settings from store -> configuration -> General -> content management system ->wysiwyg settings -> enabled as default
But to do the same thing on the product attribute page - you need to customize it on javascript level.
Below i am sharing links which might help you to do the same :
https://magento.stackexchange.com/questions/109520/make-wysiwyg-as-default
https://stackoverflow.com/questions/20304960/how-to-enable-wysiwyg-by-default-on-textarea-in-admin
Hope it helps !
First so you have created custom attribute of TextArea ? as WYSIWYG is only available for "Text Area" type attributes.
Also can you please confirm that WYSIWYG button is showing on the product edit page in your custom attribute ? if possible shared a screenshot with us - so its helps us to troubleshoot the issue !
Hi @Manthan Dave,
Thank you for your quick reply.
Sure. You exactly understood my situation.
I am sending screenshots that you can see.
Thank you so much for your help.
It has been a big issue for us.
Tom
Well after doing some resarch on it - i found that by default there is no way to enable wysiwyg editor default on the product attribute page.
if its cms page then magento 2 have settings from store -> configuration -> General -> content management system ->wysiwyg settings -> enabled as default
But to do the same thing on the product attribute page - you need to customize it on javascript level.
Below i am sharing links which might help you to do the same :
https://magento.stackexchange.com/questions/109520/make-wysiwyg-as-default
https://stackoverflow.com/questions/20304960/how-to-enable-wysiwyg-by-default-on-textarea-in-admin
Hope it helps !
I gave a kudo and made it accepted solution.
Thank you,
Tom