Trying to add the spellchecker to tiny mce in Magento 2 but not able to get it working. As a start I used this tutorial for Magento 1
http://www.danneh.org/2012/10/enabling-spellchecker-magento-wysiwyg-editor/
What I did
-
Downloaded the spellchecker plugin and added it to /lib/web/tiny_mce/plugins/
-
Changed the code to add the spellchecker withing vendor/magento/magento2-base/lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js (I know do not update magento core but this is my test system and first want to get it working 🙂 )
Line 77
var plugins = 'inlinepopups,safari,pagebreak,style,layer,table,advhr,advimage,emotions,iespell,media,searchreplace,contextmenu,paste,directionality,fullscreen,spellchecker,noneditable,visualchars,nonbreaking,xhtmlxtras', //eslint-disable-line
Line 107
'theme_advanced_buttons3': 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,ltr,rtl,|,fullscreen,|,spellchecker', //eslint-disable-line max-len
Then I removed my cache, compiled etc etc, but nothing was added when I check for example a new cms block
Best Answer
This question is similar to my question, so I modified to hopefully help you and others with this issue. You could create an afterGetConfig plugin to configure Magento 2.3's TinyMCE v4.6.4 WYSIWYG editor
1) Create the directory [app/code/vendor/module]: app/code/Project/Customtinymce
2) Create app/code/Project/Customtinymce/etc/di.xml:
3) Create app/code/Project/Customtinymce/etc/module.xml:
4) Create app/code/Project/Customtinymce/registration.php
5) Create the after plugin app/code/Project/Customtinymce/Plugin/Config.php:
After screenshot:
Please see TinyMCE v4 Toolbar Resources for more toolbar and plugin options.
I hope this plugin helps others! Please add your helpful feedback to improve this answer.