Restore initJahiaContext in live mode
Question
How to restore initJahiaContext.js script in live pages
Solution
The script javascript/initJahiaContext.js
used to be automatically injected into pages by Jahia to allow CKEditor to be loaded while in live mode. Starting with Jahia 8.2.0.0 this script is no longer added to live pages.
Depending on the deployment scenario, some developers might want to continue to load this script, either because this is relevant to their deployment, or because they want to use some old Jahia logic to support CKEditor.
A configuration property, loadJahiaContext
in jahia.properties allows to restore the script in live pages.
# Adds the script "initJahiaContext.js" in live. It is used to load CK Editor in live for blog, forum and custom modules using CKEditor in live. It is also used for "jahia-data-aggregatedjs".
loadJahiaContext = true
By default this value is false
. When set to true
, the script will be loaded in live
Note that the script is loaded in edit mode as it is required to edit content.