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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
djprozac

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

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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....
djprozac

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

Post 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??
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

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

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
djprozac

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

Post by djprozac »

Alright, I'll give that a try. Thanks!
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

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

Post 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.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

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

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Locked

Return to “CMSMS Core”