Using FCKEditor 2.6. I have configured all profiles with 'apply source formatting' = false. Yet whenever a node that contains non-entity quotation marks is edited, the quotes are converted into "quot" entitites.

This is a problem because it breaks Smartypants.

This appears to be the only aspect that's not working.

Do I need to track down an older version of FCKEditor? (And if so, would you happen to know where I could?)

Comments

escoles’s picture

Additional information: Have tried reverting back to FCKEditor version 2.5.1, but it does not appear to be compatible with the FCKEditor module. (FCKEditor-controlled fields are blank when editing an existing node.)

escoles’s picture

Title: 'Apply source formatting' = false does not appear to be honored » Found solution
Status: Active » Closed (fixed)

Here's the scoop: By default, FCKEditor "...convert[s] all special characters available in the text to their relative HTML entities, as defined by the W3C standards." [http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/C...

http://www.fckeditor.net/forums/viewtopic.php?f=6&t=9853&p=25789#p25700

So the solution is to edit /modules/fckeditor/fckeditor/fckconfig.js such that the following value is set:

FCKConfig.ProcessHTMLEntities = false ;

Once I cleared the browser cache, FCKEditor no longer changed the code. SmartyPants was able to identify the quote characters and translate them to left- and right-quotes.

escoles’s picture

Title: Found solution » Quote symbols being changed to quote entities
TimG1’s picture

Version: 5.x-2.1 » 6.x-1.3-rc7
Status: Closed (fixed) » Active

Does this work for 6.x-1.3-rc7? I just tried this and it's not working in Firefox & Safari for me. I cleared my cache. I can even open fckeditor.config.js in my browser cache and see the FCKConfig.ProcessHTMLEntities = false; line in the downloaded .js file.

Is there some other setting in Site Configuration > FCKeditor that I'm missing? I've been trying all different combinations.

*** E D I T ***
It turns out this IS working fine. For example, it work okay with & # 1 6 0 ; but it's just not working with the characters I'm trying to use. I'm basically working with on a web site that has Hawaiian words and uses the diacriticals in the Hawaiian language. These are the HTML codes I'm trying to use.
http://www.uhm.hawaii.edu/site/hawaiian_language.html

Thanks,
-Tim

TimG1’s picture

Category: support » feature

*** G O T  I T ***
I figured out how to get this working the way I want, but I feel like there must be a better way. Here's what I had to do.

  1. Open fckeditor/fckeditor/editor/js/fckeditorcode_ie.js and fckeditorcode_gecko.js
  2. Find where FCKXHtmlEntities.Entities is set to an array of all the HTML special characters. For me, this is on line 45 in fckeditorcode_gecko.js and line 44 in fckeditorcode_ie.js
  3. Append your characters to the array following the convention being used. Example: 'Ā':'#256', You don't need the & and ; in there.
  4. Leave FCKConfig.ProcessHTMLEntities = false; set to the default, "true" value.

It would be cool if I could somehow append to this array by using fckeditor.config.js. Maybe there is? If anyone knows of a better way, I'd love to hear about it! =)

wwalc’s picture

Status: Active » Closed (fixed)

@rhythmDude this is actually a separate issue (it has nothing to do with quotes), so please create a new issue for it. I haven't check this, but the only setting that allows you to pass something custom to FCKXHtmlEntities.Entities is http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/C...