Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In-Portal is using CKEditor as it's WYSIWYG editor. It has bundled Content Templates Add-On (seeĀ http://ckeditor.com/addon/templates), however there no much documentation about how to use it.

By inspecting source code I've found it can be connected to In-Portal:

This add-on allows to add predefined code snippets into the page.

Solution

  1. enable "Content Templates" add-on in CKEditor
  2. developer must enable "Templates" button on CKEditor toolbar manually, when needed (not enabled by default because nobody wants to have default templates inserted)
  3. allow specifying template configuration in "templates.js" file, that is located in same folder as "style.css" and "styles.js" files

Related Tasks

  • No labels