Fields = "IFRAME:0" breaks dialog

12 views
Skip to first unread message

arlo...@gmail.com

unread,
Apr 23, 2015, 1:15:35 PM4/23/15
to phpspe...@googlegroups.com
I have added a PHPSpellCheck button to two TinyMCE editors on the same page. If I use this option to set the fields...

$PHPSpellCheck->Fields = "EDITORS";

...then the spellcheck dialog works, but it checks the text for both editors together. I would like to use this option instead...

$PHPSpellCheck->Fields = "IFRAME:0";

...but when I do that, the spellcheck dialog doesn't seem to initialize correctly and doesn't do anything. See this screenshot:

http://www.arlomedia.com/spellcheck.png

Does the IFRAME option work for you when used with multiple TinyMCE editors?

I'm using PHPSpellCheck 1.85 and TinyMCE 4.0.16. I tested on my Mac in Safari 7, Safari 8 and Firefox 33 and the problem occurred in all three browsers.

Spellcheck Support

unread,
May 4, 2015, 4:42:22 AM5/4/15
to arlo...@gmail.com, phpspe...@googlegroups.com
Sounds annoying indeed.  I dont have enough access/info to do a deep debug in that yet - but i can probably get you out of teh woods.


The TinyMCE iframe should have a wrapping div with id:  mce_0_ifr or mce_1_ifr for the 2nd ….


The following code should work for 1 iframe


$PHPSpellCheck->Fields = "mce_0_ifr”; 



The following code should work for n iframes


$PHPSpellCheck->Fields = “mce_0_ifr, mce_1_ifr”; 


--
You received this message because you are subscribed to the Google Groups "PHPSpellCheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpspellchec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages