meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:ckeditor [2024/05/20 00:00] – external edit 127.0.0.1 | plugin:ckeditor [2025/02/14 17:45] (current) – [Only a template or a message can be edited as a full HTML page, not both. This message will use only limited HTML.] duncanc | ||
---|---|---|---|
Line 13: | Line 13: | ||
---- | ---- | ||
- | This plugin provides CKEditor for editing messages and templates. It also integrates the KCFinder file manager to provide file uploading and browsing. | + | This plugin provides CKEditor |
+ | |||
+ | Both CKEditor 4 and KCFinder are "end of life", which means they do not receive any code fixes or security updates. The plugin uses the last freely available version of CKEditor 4, version 4.22.1. There is a paid-for version that does have security patches, see [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
Line 53: | Line 55: | ||
The Settings page has a CKEditor group where you can configure the plugin. | The Settings page has a CKEditor group where you can configure the plugin. | ||
- | * | + | * The URL of ckeditor.js |
- | * | + | * The path to a custom configuration file. This is the path from the web root. |
- | * The width and height of the editor window. | + | * You can select to generate a full HTML page when editing a message. The message |
- | * | + | * Whether |
- | * Similarly you can select | + | * If using the Dressprow theme, the width and height of the editor window can be specified. |
- | * | + | * The path to KCFinder. This is the path from the web root or a relative path from the '' |
- | * | + | * In some web server configurations the plugin will not be able to correctly derive the file system path to the upload image directory from the value of '' |
* | * | ||
Line 78: | Line 80: | ||
Starting in version 2.1.0 of the plugin CKEditor is loaded from its Content Delivery Network. Earlier versions of the plugin included a copy of CKEditor but that is no longer the case. | Starting in version 2.1.0 of the plugin CKEditor is loaded from its Content Delivery Network. Earlier versions of the plugin included a copy of CKEditor but that is no longer the case. | ||
- | If you want to customise CKEditor, such as by adding further plugins to it, then you can install a local copy. You must then enter the URL for ckeditor.js in the CKEditor group on the Settings page. For example, if you installed CKEditor in the directory '' | + | If you want to customise CKEditor, such as by adding further plugins to it, then you can install a local copy by downloading a version from https://ckeditor.com/ckeditor-4/download/? |
+ | Expand the zip file then copy the ckeditor directory to the root directory of your web site. | ||
+ | |||
+ | You must then enter the URL for ckeditor.js in the CKEditor group on the Settings page. For example, if you installed CKEditor in the directory '' | ||
+ | |||
+ | At present (July 2024) version 4.20.2 is the last one that does not display a pop-up message regarding being insecure and recommending upgrading. | ||
===== Upgrade CKEditor ===== | ===== Upgrade CKEditor ===== | ||
Line 129: | Line 136: | ||
If you cannot resolve the problem then a work-around is to change one line in the KCFinder config file, setting '' | If you cannot resolve the problem then a work-around is to change one line in the KCFinder config file, setting '' | ||
- | ==== Only a template or a message can be edited as a full HTML page, not both. This message will use only limited HTML. ==== | ||
- | |||
- | By default, CKEditor allows only a limited set of HTML elements to be used. If you want it to generate a full HTML page, including the structural elements ('' | ||
- | |||
- | When one of those settings is enabled, CKEditor will ensure that the HTML structural elements are present, even if not entered directly. This means that it is not sensible to edit both templates and messages as full HTML pages because both will include structural elements leading to badly-formed HTML when a template includes a message using the [CONTENT] placeholder. | ||
- | |||
- | If both of those settings are enabled then the one for templates takes precedence, and CKEditor will allow only limited HTML when editing a message. | ||
- | If you want to create only full page HTML messages and do not use templates then set "Allow templates ..." to No and "Allow messages ..." to Yes. | ||
====== Support ====== | ====== Support ====== | ||
Please raise any questions or problems in the user forum https:// | Please raise any questions or problems in the user forum https:// |