ckeditor5-merge-tags
v1.0.0
Published
Module to implement merge tags, based on the 'implementing an inline widget' tutorial on ckeditor homepage
Downloads
4
Readme
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.