A CK Editor 5 plugin which adds a button allowing users to insert labels for content to be replaced with dynamic text
- Install the npm package
npm install @pango-studio/ckeditor_dynamic_text
- Add the plugin and configuration to your CK editor instance
import InsertDynamicText from '@pango-studio/ckeditor_dynamic_text/src/InsertDynamicText';
...
ClassicEditor
.create( editorElement, {
plugins: [ ..., InsertDynamicText],
toolbar: [ ..., 'InsertDynamicText'],
dynamicTextOptions: {
labels: ['app_name', 'app_url', 'user_email', 'password_link'],
},
})