Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 8 which has ckeditor in core has implemented enabling browser native spell checker by default in a way that does not conflict with ckeditor context menu using ctrl-right-click or command-right-click (MAC).
A patch that provides a similar functionality for ckeditor-7.x-1.x as a backport will help those looking for the same with Drupal 7.
Comments
Comment #1
kcoop CreditAttribution: kcoop commentedYou can re-enable the firefox spellchecker like so:
Unfortunately, I haven't found a way to disable the CKEditor menu. You can, however, control-click to get the native one. If it doesn't work, look for this is in your config, and change it to true (or remove it - the default should be true).
Comment #2
toddgee CreditAttribution: toddgee commentedthank seems to work. Closing this issue.
For others that stumble on this, there's more of the same here:
http://stackoverflow.com/questions/2682042/ckeditor-using-firefox-built-...
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
Comment #4
tryitonce CreditAttribution: tryitonce commentedSorry, but could you add just with a littler more detail where to put the line:
config.disableNativeSpellChecker = false;
Which file and which subdirectory - I tried but failed to get it going.
Is that the only line of is there something else to put around it?
Thanks ...
Comment #5
metastate CreditAttribution: metastate commentedYou add the line to your ckeditor.config.js file. This file is where all your customizations can go for the module, such as creating custom toolbars.
The file is in the ckeditor module folder. In my setup this folder is located at: /sites/all/modules/ckeditor
You can add the line right before the closing }; tag. I also suggest adding a comment explaining what the line is for. This is a good way to track any customizations and copy them over when you update the module in the future.
Hope that helps!
Comment #6
tryitonce CreditAttribution: tryitonce commentedGreat - thanks - just the easy to understand explanation for everyone -
Comment #7
jp2020 CreditAttribution: jp2020 commentedWhat should we do if the user, uses another browser?
Comment #8
MurzAdding lines to ckeditor.config.js file works very good, but why this is absent in module settings? It is very useful for many users, but not each user can find this issue and do operations with files.
I change this issue to "Feature request" and hope that this will be available in module settings.
Comment #9
mkesicki CreditAttribution: mkesicki commentedI close this ticket.
This option will not be added to module settings. It is for more advanced users who can add this in ckeditor.config.js file or in "Custom JavaScript configuration" option in CKEditor's profile.
Too many options in module settings can be confused for less advanced users.
Comment #10
tryitonce CreditAttribution: tryitonce commented.... slightly puzzled and wondering about this view:
"This option will not be added to module settings. ... Too many options in module settings can be confused for less advanced users.
I would have thought that proper spelling is such a fundamental aspect of developing successful websites, that it should be a basic feature rather than an advanced one.
Comment #11
Aren Cambre CreditAttribution: Aren Cambre commented@tryitonce is correct: spell checking is such a basic thing now, it doesn't make sense to omit this option, only allowing advanced users to find it. In fact, the native spell checker should be enabled by default. Drupal is about usability, right?
Comment #12
mkesicki CreditAttribution: mkesicki commentedComment #13
izmeez CreditAttribution: izmeez commentedAs late comers from fckeditor to ckeditor we too stumbled over the spell checker configurations. For our users spellcheckers are essential.
This information is taken from many posts available on the Internet.
To configure ckeditor for:
When using the ckeditor module edit the file
ckeditor.config.sysckeditor.config.js in the module directory. If using the ckeditor library with another module such as wysiwyg edit the file config.sys in the ckeditor library directory. Copy and paste the following into the configuration file and uncomment or comment as needed.After making changes to the configuration files, flush website caches and browser cache.
To activate the Aspell spell check it is also necessary to go to admin/settings/ckeditor and edit each profile. Open up the "Editor appearance" fieldset. Under Toolbar, Load sample toolbar, click on required toolbar to refresh icons. Then below the icons under Plugins check the Aspell plugin.
The Aspell/SpellCheck icon does not appear on the configuration toolbar displays but does appear when using editor.
It might be helpful to other newcomers to have this in the default ckeditor.config.sys with all the lines commented.
Comment #14
izmeez CreditAttribution: izmeez commentedSorry I forgot to change the status and have done that now.
Comment #15
dczepierga CreditAttribution: dczepierga commented@izmeez, u write instruction for WYSIWYG module or CKEditor module?
Comment #16
izmeez CreditAttribution: izmeez commentedThe instructions in comment #13 are for the ckeditor module.
Comment #17
mkesicki CreditAttribution: mkesicki commented@izmeez ,
there is no ckeditor.config.sys file into CKEditor module for drupal. Did you mean ckeditor.config.js ?
Comment #18
izmeez CreditAttribution: izmeez commentedSorry, that is correct it should be ckeditor.config.js
Comment #19
jcisio CreditAttribution: jcisio commentedThere is no patch yet.
Comment #20
izmeez CreditAttribution: izmeez commented@jcisio Are you looking for #13 copy and paste to be made into a patch?
Comment #21
Kirsten CreditAttribution: Kirsten commentedI agree this should be an option in the module or else the default. I spent half a day figuring it out because I am one of the "not advanced coders" deemed unfit to allow my site users to use their own browser spell checkers instead of the premium one. Figuring this out has confused me significantly more than an extra button in the configuration panel would have done.
This works with my Drupal 7.27 development site.
go to sites > all > modules > wysiwyg > editors > js
and edit the file: ckeditor-3.0.js
Insert the following line of code (I put it near the bottom and have no idea if that's proper, but it works):
config.removePlugins = 'contextmenu,liststyle,tabletools';
It's very interesting to note that drupal.org's rich text editor does not rip away your browser's native spellchecker. This should be a clue for the developer that this is the direction wysiwyg should be going as well. I understand Drupal 8 will ship with ckeditor in core and hope this issue will be addressed there. I hope this post will save someone like me the time I spent with trial and error figuring out where the heck to stick the line of code I found in my searching because when wysiwyg is involved, it doesn't go where most posts are suggesting it should go (in the ckeditor folder).
Comment #22
PiTRiS CreditAttribution: PiTRiS commentedThis should be an option. I forced it in ckeditor.inc, but a switch checkbox would be nice. Same with 7.x
Comment #23
izmeez CreditAttribution: izmeez commentedAttached is a patch for ckeditor-7.x-1.x-dev consistent with D8 implementation #2307141: Enable browsers' (native) spell checker in CKEditor committed to 8.1.x
The patch adds entry to help and enables browser native spell checker by default but requires use of ctrl-right-click or command-right-click (MAC) to retain ckeditor context functionality.
This needs tests and needs review.
Comment #24
izmeez CreditAttribution: izmeez commentedChanging title to highlight this is Backport for D7
Comment #25
abs CreditAttribution: abs commentedIs CTRL+Right Click for native menu click functionality browser dependent? I tried with Firefox and Chrome with no success while it seems to work in Opera and Chromium. Quite confused.
EDIT: Found it - Issue is caused by gesture addon in the browser.
Comment #26
izmeez CreditAttribution: izmeez commentedAny chance patch in #23 can be RTBC ?
Comment #28
vokielComment #29
vokiel