CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Alow CKEditor to be extended through hook #359

Closed FilipNest closed 7 years ago

FilipNest commented 7 years ago

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);

})