Hi Guys,
I have had major issues with PSpell etc in Tinymce so Im looking to iniciate and expernal js spellchecker called Nanospell.
When I add the code to the admin footer it messes up the editor. The code I am adding is:
tinymce.init({
selector:'textarea',
external_plugins: { "nanospell": "/infinity/nanospell/plugin.js" },
nanospell_server:"php"
});
Does anybody know what I am doing wrong?
If this is not possible, I have also found JavaScriptSpellCheck that can be used with TinyMCE but as the editor is coded into PhpMyFAQ I'm not sure where to make the changes to get either of these working..
http://www.javascriptspellcheck.com/tin ... llchecker/
Any advice would be much appreciated.
Thanks in advance,
Andy
External Spell Checker NanoSpell & JavaScript Spell Check
Moderator: Thorsten
External Spell Checker NanoSpell & JavaScript Spell Check
Last edited by AndyE on Fri Aug 28, 2015 5:57 am, edited 1 time in total.
Re: External Spell Checker NanoSpell & JavaScript Spell Chec
Hi,
you can put this code into admin/footer.php
bye
Thorsten
you can put this code into admin/footer.php
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: External Spell Checker NanoSpell & JavaScript Spell Chec
Hi Thorsten,
Thanks for getting back to me, I have tried adding the code to the paramiters of the tinymce.init but when added it stops the editor loading corectley? this is how the footer looks with the code added... are I missing something?
---------------
<script>
/*<![CDATA[*/ //<!--
$().tooltip({placement: 'bottom'});
tinyMCE.init({
// General options
mode : "exact",
language : "<?php print (PMF_Language::isASupportedTinyMCELanguage($LANGCODE) ? $LANGCODE : 'en'); ?>",
elements : "<?php print ('addnews' == $action || 'editnews' == $action) ? 'news' : 'answer' ?>",
width : "500",
height : "480",
theme : "advanced",
selector:'textarea',
external_plugins: { "nanospell": "/infinity/nanospell/plugin.js" },
nanospell_server:"php"
});
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,insertdatetime,searchreplace,print,media,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,syntaxhl,phpmyfaq",
theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp",
----------
I have also tried it removing the selector:'textarea', and also changing it to selector:'exact', and it just loads the editor as a box full of code. I have also removed the }); at the end and that still dont fix it?
Any advice?
Thanks
Andy
Thanks for getting back to me, I have tried adding the code to the paramiters of the tinymce.init but when added it stops the editor loading corectley? this is how the footer looks with the code added... are I missing something?
---------------
<script>
/*<![CDATA[*/ //<!--
$().tooltip({placement: 'bottom'});
tinyMCE.init({
// General options
mode : "exact",
language : "<?php print (PMF_Language::isASupportedTinyMCELanguage($LANGCODE) ? $LANGCODE : 'en'); ?>",
elements : "<?php print ('addnews' == $action || 'editnews' == $action) ? 'news' : 'answer' ?>",
width : "500",
height : "480",
theme : "advanced",
selector:'textarea',
external_plugins: { "nanospell": "/infinity/nanospell/plugin.js" },
nanospell_server:"php"
});
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,insertdatetime,searchreplace,print,media,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,syntaxhl,phpmyfaq",
theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp",
----------
I have also tried it removing the selector:'textarea', and also changing it to selector:'exact', and it just loads the editor as a box full of code. I have also removed the }); at the end and that still dont fix it?
Any advice?
Thanks
Andy
Re: External Spell Checker NanoSpell & JavaScript Spell Chec
Hi,
do you see any errors in your console of your browsers developer tools?
bye
Thorsten
do you see any errors in your console of your browsers developer tools?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: External Spell Checker NanoSpell & JavaScript Spell Chec
I dont see any errors at all in the console.... im stumpted...
Andy
Andy