Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5321

FCKeditor changes non-Latin characters to their entities by default

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3, 3.1
    • Component/s: Internationalisation
    • Labels:
      None

      Description

      http://forum.civicrm.org/?topic=10556 - FCKeditor's changing non-Latin characters to their entities because FCKConfig.ProcessHTMLEntities is set to true in packages/fckeditor/fckconfig.js; this breaks the automatic HTML-to-text converter (as the converter does not know how to change the entities back).

      We should fix this by changing FCKConfig.ProcessHTMLEntities, FCKConfig.IncludeLatinEntities and FCKConfig.IncludeGreekEntities to false - but we need to make sure whether this affects <, >, " and & as well, and if so, whether we want these escaped to their entities or not.

      For CiviCRM 3.1 we should check whether it applies to the CKEditor that replaced FCKeditor and fix accordingly.

      Alternatively, we can teach html2text() to decode the escaped characters (mabye with PHP's html_entity_decode()?), which would solve this issue once and for all WYSIWYG editors.

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              shot Piotr Szotkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: