PHPackages                             outlawplz/ckeditor\_templates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. outlawplz/ckeditor\_templates

AbandonedDrupal-module[Utility &amp; Helpers](/categories/utility)

outlawplz/ckeditor\_templates
=============================

This plugin provides a dialog to offer predefined content templates - with page layout, text formatting and styles.

v0.1.1(9y ago)2441GPL-3.0PHP

Since Mar 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/OutlawPlz/ckeditor_templates)[ Packagist](https://packagist.org/packages/outlawplz/ckeditor_templates)[ RSS](/packages/outlawplz-ckeditor-templates/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

CKEditor Templates
==================

[](#ckeditor-templates)

Drupal 8 custom module that implements Templates plugin in CKEditor.

Quick start
-----------

[](#quick-start)

Start using CKEditor Templates in three steps.

1. Download latest CKEditor Templates module from [Github](https://github.com/OutlawPlz/ckeditor_templates "Github - CKEditor templates") or via Composer and enable it as usual.

```
composer require outlawplz/ckeditor_templates
```

2. Download the CKEditor Templates plug-in and copy it to the `libraries/`folder found at Drupal root folder.

```
# Plug-in location
/libraries/templates/plugin.js
```

3. 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
-------

[](#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-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.

```
// The name of templates set is 'custom'.
CKEDITOR.addTemplates( 'custom', {

  // Path to the subfolder that contains the preview images.
  imagesPath: '/libraries/custom_templates/images/',

  // Template definition.
  templates: [
    {
      title: 'Custom template',
      image: 'custom.gif',
      description: 'Description of my custom template.',
      html:
        'Custom Template' +
        'Your text...'
    },
    {
      title: 'Custom template with image',
      image: 'custom_image.gif',
      description: 'Description of my custom template with image.',
      html:
        'Custom Template with Image' +
        '',
        'Your text...'
    }
  ]
} );
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

3347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ca068e1dd24801f83c4c4802af654bdb2db4025499aa94d0575898a4a5d5c8f?d=identicon)[OutlawPlz](/maintainers/OutlawPlz)

---

Top Contributors

[![OutlawPlz](https://avatars.githubusercontent.com/u/14197383?v=4)](https://github.com/OutlawPlz "OutlawPlz (10 commits)")

### Embed Badge

![Health badge](/badges/outlawplz-ckeditor-templates/health.svg)

```
[![Health](https://phpackages.com/badges/outlawplz-ckeditor-templates/health.svg)](https://phpackages.com/packages/outlawplz-ckeditor-templates)
```

###  Alternatives

[justinbusschau/hmrc-gift-aid

A library for charities and CASCs to claim Gift Aid (including Small Donations) from HMRC

209.9k](/packages/justinbusschau-hmrc-gift-aid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
