PHPackages                             outlawplz/ckeditor\_template\_widget - 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\_template\_widget

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

outlawplz/ckeditor\_template\_widget
====================================

CKEditor plugins that convert Content Templates into Widgets for Drupal 8.

v0.1.0(9y ago)127GPL-3.0PHP

Since Mar 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/OutlawPlz/ckeditor_template_widget)[ Packagist](https://packagist.org/packages/outlawplz/ckeditor_template_widget)[ RSS](/packages/outlawplz-ckeditor-template-widget/feed)WikiDiscussions master Synced yesterday

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

CKEditor Template Widget
========================

[](#ckeditor-template-widget)

Convert CKEditor Content Templates into Widgets.

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

[](#quick-start)

Start using CKEditor Template Widget in three steps.

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

```
composer require outlawplz/ckeditor_template_widget
```

2. Define a CKEditor plugin in your `libraries/` folder that converts a template into a widget.

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

3. Add a content that uses a template and enjoy your new content editor experience.

That's it. You're all set to start using CKEditor Template Widget.

Define CKEditor Plugin
----------------------

[](#define-ckeditor-plugin)

Suppose you have defined a template that prints the following HTML.

```

    Your content...

    Your content...

```

Create the plug-in file `libraries/templatewidget/plugin.js` as follow. Here we're adding a new CKEditor plug-in called `templatewidget`. Inside the plug-in we add a new widget using the function `editor.widget.add()`; we can define multiple widgets in a single plug-in.

```
CKEDITOR.plugins.add( 'templatewidget', {

  requires: 'widget,templates',

  init: function ( editor ) {

    editor.widgets.add( 'lt_50', { // Define a new widget.

      editables: { // Define editable parts.
        left: {
          selector: '.lt-50__clm--left'
        },
        right: {
          selector: '.lt-50__clm--right'
        }
      },
      upcast: function( element ) { // Convert the template into a widget.
        return element.name == 'div' && element.hasClass( 'lt-50' );
      }
    } );
  }
} );
```

That's it. Now we can try to use the template in CKEditor, and verify that the widget is working.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3396d 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 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[paragonie/corner

Generic PHP Exceptions and Errors, made user-friendly.

63676.2k8](/packages/paragonie-corner)[flyntwp/acf-field-group-composer

51152.3k](/packages/flyntwp-acf-field-group-composer)[sphpdox/sphpdox

PHPDoc to Sphinx phpdomain tool

4817.8k9](/packages/sphpdox-sphpdox)

PHPackages © 2026

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