Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-02-16 17:55:28

MrK
New member
Registered: 2006-02-16
Posts: 1

SpellChecker is messing with my images

I got the spellchecker installed and working however there are some quirks I don't know how to fix.

1) It finds the forced space &nbsp to be a misspelled word. And I cannot add it to the dictionary

2) Image files get very messed up by, for some reason, automatically changing <img to <span class= then it starts changng the quotes and such.

Offline

#2 2006-03-23 15:37:56

mleiv
New member
Registered: 2006-03-23
Posts: 8

Re: SpellChecker is messing with my images

I had the same problem with images - it was something to do with spaces or special characters in the alt/title tags... I can't remember.  But I tinkered with the javascript as follows and it (sort-of) fixed it:

in spell-check-ui.js
function makeCleanDoc() - added right after the html var is set:
html=html.replace(/(<img[^>]*|<a[^>]*)(\stitle|\salt)x=/ig,"$1$2"+"=");
function initDocument() - added right after the html var is set:
html=html.replace(/(<img[^>]*|<a[^>]*)(\stitle|\salt)=/ig,"$1$2"+"x=");

But now it doesn't check title/alt for spelling. sad

I think the problem was buried in the PHP library (rather than the Xinha cgi files I can edit), so I just gave up on properly fixing it.

I never have a problem with  , so I can't help with that one.

Offline

Board footer

Powered by FluxBB