Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Tinymce SpellChecker Alternatives


Go to End


1067 Views

Avatar
MrsNic

Community Member, 2 Posts

4 September 2015 at 10:59pm

Hi there,

I would like to have spellchecker on the WYSIWYG on SilverStripe 3.1 however, it's sitting on IIS with limited configuration with PHP i.e. I wouldnt' be able to install PSpell/Aspell. So, I looked about for another TinyMCE plugin and found one called NanoSpell http://tinymcespellcheck.com/

I think this would be perfect to include this in. It says all that is required is to link the external plugin by the TinyMCE init by the following:

tinymce.init({
selector:'textarea',
external_plugins: { "nanospell": "/nanospell/plugin.js" },
nanospell_server:"php"
});

Which seems reasonable. So I moved the nanospell folder into the framework/thirdparty/tinymce/plugins and then added the following to the config file.

HtmlEditorConfig::get('cms')->enablePlugins('nanospell', 'contextmenu');

(The server setting isn't required as php would be called on default). But that didn't work.

Then I tried to include the folder structure itself by using the following but that broke the Admin view :/

HtmlEditorConfig::get('cms')->enablePlugins(array('nanospell' => '/nanospell/plugin.js'));

I was assuming that the relative position should be in the plugins folder of framework etc?

Is anyone able to provide some help with this. OR, is there something else I can use other than PSpell/Aspell? I do have Enchant on the IIS/PHP if that helps?

Many Thanks