1.1.0 • Published 2 years ago

@pango-studio/ckeditor_dynamic_text v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Dynamic text plugin for CK Editor 5

A CK Editor 5 plugin which adds a button allowing users to insert labels for content to be replaced with dynamic text Screenshot

Instructions

  1. Install the npm package
npm install @pango-studio/ckeditor_dynamic_text
  1. 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'],
        	},
	})