In magento 2.3.1, installed on aws lightsail using bitnami. I'm trying to disable tinymce from inserting `<p>` tags, and the solution that many agree with is
https://stackoverflow.com/a/26396255/1920003
`forced_root_block : '', /* <-- Add this setting */`
to
`js/mage/adminhtml/wysiwyg/tiny_mce/setup.js`
But there are many setup.js files and none look like the standard setup.js file. I really want to apply this solution because
1. I can't upgrade to newer version off magento, I have 50 extensions that will break
2. I can't disable the wysiwyg, there are none technical users editing the site
3. I believe this will work, when I used to create my own hand written CMSes, I used to face a similar problem and fix it like that.
Solved! Go to Solution.
No, the correct file containing tinymce setup isn't even called setup.js
it's
`lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js`
I added this option on line 206 and the problem seems fixed.
FK magento because,
Hi @elie_obeid
At below directory path tinymce setup.js available:
- lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
- vendor/magento/magento2-base/lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
Hope it helps!
if issue solved,Click Kudos & Accept as Solution
No, the correct file containing tinymce setup isn't even called setup.js
it's
`lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js`
I added this option on line 206 and the problem seems fixed.
FK magento because,