The name of the form field is passed through into the hook if needed. This should be replaced later with a proper config management system but this is better than what we had.
Also moved CKeditor into the actual system as it was being loaded via a CDN. Should eventually move it to an NPM dependency too so versions can be managed.
iris.modules.ckeditor.registerHook("hook_ckeditor_config", 0, function (thisHook, data) {
if (thisHook.context.name === "body") {
data.height = "5000px";
}
thisHook.pass(data);
})
The name of the form field is passed through into the hook if needed. This should be replaced later with a proper config management system but this is better than what we had.
Also moved CKeditor into the actual system as it was being loaded via a CDN. Should eventually move it to an NPM dependency too so versions can be managed.