summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-16 08:23:42 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-16 08:23:42 +0000
commitc82bd01cdd2eabcbf00ea99e1cddc578ce91b455 (patch)
tree047a6177e1f299213c34df69d866b82b3b57d450 /resources
parent584075bc0c9e3e1309dafdc0b9dcb99f20a5d18a (diff)
downloadwebtrees-c82bd01cdd2eabcbf00ea99e1cddc578ce91b455.tar.gz
webtrees-c82bd01cdd2eabcbf00ea99e1cddc578ce91b455.tar.bz2
webtrees-c82bd01cdd2eabcbf00ea99e1cddc578ce91b455.zip
Tell CKeditor not to convert htmlentities
Diffstat (limited to 'resources')
-rw-r--r--resources/views/modules/ckeditor/ckeditor-js.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/views/modules/ckeditor/ckeditor-js.phtml b/resources/views/modules/ckeditor/ckeditor-js.phtml
index d443da103f..8dcc31172b 100644
--- a/resources/views/modules/ckeditor/ckeditor-js.phtml
+++ b/resources/views/modules/ckeditor/ckeditor-js.phtml
@@ -11,6 +11,9 @@
CKEDITOR.config.removePlugins = "forms,newpage,preview,print,save,templates,flash,iframe";
CKEDITOR.config.extraAllowedContent = "area[shape,coords,href,target,alt,title];map[name];img[usemap];*[class,style]";
+ // Do not convert é to &eacute; in the editor
+ CKEDITOR.config.entities = false;
+
// Activate the editor
document.querySelectorAll("textarea.html-edit").forEach((node) => {
CKEDITOR.replace(node.id);