From 852d4016d6bf468a3e15468dce94e08dd8e8d1c0 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Tue, 28 Feb 2023 10:57:58 +1100 Subject: [PATCH] CIVICRM-2103 Change CKEditor 4 default to not encode HTML entities by default which breaks Smarty syntax and prevents use of crmDate function. See https://civicrm.stackexchange.com/questions/7212/escaping-quotes-in-ckeditor-breaks-smarty-syntax/7213#7213 --- ext/ckeditor4/CRM/Ckeditor4/Form/CKEditorConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ckeditor4/CRM/Ckeditor4/Form/CKEditorConfig.php b/ext/ckeditor4/CRM/Ckeditor4/Form/CKEditorConfig.php index 5842a6297d..7e30ba1e6a 100644 --- a/ext/ckeditor4/CRM/Ckeditor4/Form/CKEditorConfig.php +++ b/ext/ckeditor4/CRM/Ckeditor4/Form/CKEditorConfig.php @@ -309,7 +309,7 @@ class CRM_Ckeditor4_Form_CKEditorConfig extends CRM_Core_Form { */ public static function setConfigDefault() { if (!self::getConfigFile()) { - $config = self::fileHeader() . "CKEDITOR.editorConfig = function( config ) {\n\tconfig.allowedContent = true;\n};\n"; + $config = self::fileHeader() . "CKEDITOR.editorConfig = function( config ) {\n\tconfig.allowedContent = true;\n\tconfig.entities = false;\n};\n"; // Make sure directories exist if (!is_dir(Civi::paths()->getPath('[civicrm.files]/persist'))) { mkdir(Civi::paths()->getPath('[civicrm.files]/persist')); -- 2.25.1