Page 1 of 1

FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' button

Posted: Wed Jul 19, 2006 7:49 pm
by djprozac
Well, the title pretty much says it all: I have to use FCK and not TinyMCE because of FCK's template features and Embedded video plugin. I just recently stumbled upon a problem with FCK however that is pretty annoying.
Whenever I insert a module tag in a page and I save the page, the quotes in the module tag get replaced by the html entity for the quote: &quot ;. Quotes in DIV tag's or other HTML code is left alone, as it should be.
The FCKeditor version is the latest as of today (1.0).

I tried looking on the forum but I haven't been able to find a topic with this problem, however it seems like a pretty obvious problem...  ???

Thanks in advance!

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Thu Jul 20, 2006 8:00 am
by Dr.CSS
in the upper left hand corner is a button called Source clik that and a window pops up, paste the tag or what ever in this and it will get no formatting....

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Thu Jul 20, 2006 8:58 am
by djprozac
mark wrote: in the upper left hand corner is a button called Source clik that and a window pops up, paste the tag or what ever in this and it will get no formatting....
No, that's not right. In TinyMCE there is a popup window in which code can be pasted, in FCK the textarea changes into html code view when you press the 'code' button. However, this also replaces the quotes in cmsmadesimple tags.
Anyone??

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Fri Jul 21, 2006 11:19 pm
by Elijah Lofgren
djprozac wrote:
mark wrote: in the upper left hand corner is a button called Source clik that and a window pops up, paste the tag or what ever in this and it will get no formatting....
No, that's not right. In TinyMCE there is a popup window in which code can be pasted, in FCK the textarea changes into html code view when you press the 'code' button. However, this also replaces the quotes in cmsmadesimple tags.
Anyone??
It should work fine if you first presss the "Source" button and then paste the module tag.
One way to get around this problem is to use single quotes instead of double quotes.

For example:
Instead of this:

Code: Select all

{cms_module module="something"}
Use something like this:

Code: Select all

{cms_module module='something'}
Hope this helps,

Elijah

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Sun Jul 23, 2006 10:51 am
by djprozac
Alright, I'll give that a try. Thanks!

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Mon Jul 24, 2006 12:14 am
by Elijah Lofgren
Elijah Lofgren wrote:
djprozac wrote:
mark wrote: in the upper left hand corner is a button called Source clik that and a window pops up, paste the tag or what ever in this and it will get no formatting....
No, that's not right. In TinyMCE there is a popup window in which code can be pasted, in FCK the textarea changes into html code view when you press the 'code' button. However, this also replaces the quotes in cmsmadesimple tags.
Anyone??
It should work fine if you first presss the "Source" button and then paste the module tag.
Hmm.. Actually it does mess with the quote tags even if they were entered in source view. I would just switch to using the Xinha module: http://dev.cmsmadesimple.org/projects/xinha
Use the SVN version of Xinha as it has bugfixes. I should ask Silmarillion to make a new release sometime.

Re: FCKeditor replaces quotes with " ;'s when saving or pressing 'Code' butt

Posted: Mon Jul 24, 2006 4:06 am
by Elijah Lofgren
djprozac wrote: Well, the title pretty much says it all: I have to use FCK and not TinyMCE because of FCK's template features and Embedded video plugin. I just recently stumbled upon a problem with FCK however that is pretty annoying.
Whenever I insert a module tag in a page and I save the page, the quotes in the module tag get replaced by the html entity for the quote: &quot ;. Quotes in DIV tag's or other HTML code is left alone, as it should be.
The FCKeditor version is the latest as of today (1.0).
I have found a way to:
Stop FCKeditor from replacing double quotes (") with the HTML entity version of it (&quote;)
This fix was just to remove this:
'"':'quot',
from both files in FCKeditor/editor/js
Fix applied in lastest SVN of FCKeditorX: http://viewsvn.cmsmadesimple.org/viewsv ... x&view=rev