How to Enable TinyMCE Browser Spellcheck Passthrough?

TinyMCE seems to have the option to allow browser based spell check (i.e. the spellcheck built into Chrome/Firefox) that can be enabled in the init call. Here is a bit from their docs page:

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  **browser_spellcheck: true,**
  contextmenu: false
});

Is there anyway to turn on “browser_spellcheck” option in the PHPMaker launch of TinyMCE? I know they sell a module but it is outrageously priced for our small team and is subscription based & browser spellcheck would be fine for our purposes. Thanks!

You may search “create.editor” in the forum and use the event to add your own settings.

1 Like

Thanks for the search term help. Here is at least one way to get pass-through spell check to work with TinyMCE:

In the Code tab under “Client Scripts, Table Specific, Add/Copy Page, Client Script” add the following code. This code assumes the field being edited in tinyMCE is named “Notes” (substitute your own field name as needed):

$(document).on("create.editor", function(e, args) {
    if (args && args.id == "x_Notes") {
        args.settings.browser_spellcheck = true;
        args.settings.contextmenu = false;
    } 
});

For a more generalized solution you could place the following into “Client Scripts, Global, Pages with header/footer, Client Script”:

$(document).on("create.editor", function(e, args) {
        args.settings.browser_spellcheck = true;
        args.settings.contextmenu = false;
});