Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
escoles CreditAttribution: escoles commentedAdditional 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.)
Comment #2
escoles CreditAttribution: escoles commentedHere'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.
Comment #3
escoles CreditAttribution: escoles commentedComment #4
TimG1 CreditAttribution: TimG1 commentedDoes 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
Comment #5
TimG1 CreditAttribution: TimG1 commented*** 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.
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! =)
Comment #6
wwalc CreditAttribution: wwalc commented@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...