Hello all.
I'm using FCKeditor Javacript API to instance my fck editors since my site is AJAX oriented.
But I'm having trouble with following characters (so far examined):
< completely ejected from submitted text
> also ejected
+ also ejected
# causes error in later on display (terminates HTML on page)
^ terminates entry after this sign
" terminates entry after this sign
& terminates entry after this sign
Now, since users on my page must have right to enter anything they want, ans since I am there to validate entries, this strange behaviour leaves me no option to get text entered in FCK editor at all, since instancing and retrieving user's input is done via JS:
var oEditor2 = FCKeditorAPI.GetInstance('PAR_T2');
var PAR_T2_submitted = oEditor2.GetXHTML(true);
and GetXHTML returns false result when those characters are met.
EXAMPLES:
upper retrieval code returns:
1. USER ENRTY: <p>play + dog</p>
RETURNED in PAR_T2_submitted var: <p>play dog</p>
2. USER ENRTY: <p>does anyone know "KFC"?</p>
RETURNED in PAR_T2_submitted var: <p>does anyone know
So GetXHTML doesn't give me entry user has entered, rather when it come to signs mentioned, it starts to behave ugly.
Has anyone encountered such problem? And perhaps have any idea what to do, since, if I don't find any soon, I'll have to leave this rubbish behind and make my own text editor.
Thanks for any suggestions.
I'm using FCKeditor Javacript API to instance my fck editors since my site is AJAX oriented.
But I'm having trouble with following characters (so far examined):
< completely ejected from submitted text
> also ejected
+ also ejected
# causes error in later on display (terminates HTML on page)
^ terminates entry after this sign
" terminates entry after this sign
& terminates entry after this sign
Now, since users on my page must have right to enter anything they want, ans since I am there to validate entries, this strange behaviour leaves me no option to get text entered in FCK editor at all, since instancing and retrieving user's input is done via JS:
var oEditor2 = FCKeditorAPI.GetInstance('PAR_T2');
var PAR_T2_submitted = oEditor2.GetXHTML(true);
and GetXHTML returns false result when those characters are met.
EXAMPLES:
upper retrieval code returns:
1. USER ENRTY: <p>play + dog</p>
RETURNED in PAR_T2_submitted var: <p>play dog</p>
2. USER ENRTY: <p>does anyone know "KFC"?</p>
RETURNED in PAR_T2_submitted var: <p>does anyone know
So GetXHTML doesn't give me entry user has entered, rather when it come to signs mentioned, it starts to behave ugly.
Has anyone encountered such problem? And perhaps have any idea what to do, since, if I don't find any soon, I'll have to leave this rubbish behind and make my own text editor.
Thanks for any suggestions.