ckeditor5-merge-tags

1.0.0 • Public • Published

This is a module for ckEditor5. It is based on the tutorial "Implementing an inline widget" on the ckeditor.com website (https://ckeditor.com/docs/ckeditor5/latest/framework/guides/tutorials/implementing-an-inline-widget.html). It might deviate more from it in the future, as it is adapted to fit our project.

To install: npm install ckeditor5-merge-tags

In your application: import MergeTags from "ckeditor5-merge-tags/src/mergetags;

Configuration:

ClassicEditor
       .create( document.querySelector( '#editor' ), {
           plugins: [ MergeTags, ... ],
           toolbar: [ 'mergetags', ... ],
           mergetagsConfig: {
           		types: ['name', 'url', 'whatevertypesyouwanttoallow']
           	},
       } )
       .then( ... )
       .catch( ... );

The config in mergetagsConfig is optional. The application will then use the types specified in mergetagsediting.js.

Readme

Keywords

Package Sidebar

Install

npm i ckeditor5-merge-tags

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

21.7 kB

Total Files

12

Last publish

Collaborators

  • stejes