Download the PHP package outlawplz/ckeditor_templates without Composer
On this page you can find all versions of the php package outlawplz/ckeditor_templates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outlawplz/ckeditor_templates
More information about outlawplz/ckeditor_templates
Files in outlawplz/ckeditor_templates
Package ckeditor_templates
Short Description This plugin provides a dialog to offer predefined content templates - with page layout, text formatting and styles.
License GPL-3.0
Informations about the package ckeditor_templates
CKEditor Templates
Drupal 8 custom module that implements Templates plugin in CKEditor.
Quick start
Start using CKEditor Templates in three steps.
-
Download latest CKEditor Templates module from Github or via Composer and enable it as usual.
-
Download the CKEditor Templates plug-in and copy it to the
libraries/
folder found at Drupal root folder. - Edit a text format that uses CKEditor, and enable the Templates plug-in dragging the icon from Available buttons to Active toolbar.
That's it. You're all set to start using CKEditor Templates.
Options
Once the plug-in is enabled, you can specify where to find your templates file editing the plug-in settings. Available options are Name, Path and Replace content.
-
Name: The name of your templates set. In the example below the templates name is
custom
. -
Path: The path to your template file. In the example below the path is
/libraries/custom_templates/custom.templates.js
. - Replace content: When inserting a template the content should be replaced or not by default.
Templates definition
Templates are defined in JS files. Save your templates file in /libraries
folder or /sites/default/files
folder. In this example the file will be
created into /libraries/custom_templates
folder.