Started to rewrite CKEDITOR placeholder plugin for CKEDITOR5.

This commit is contained in:
Jan Böhmer 2022-07-29 01:03:17 +02:00
parent a33e93826a
commit eba89cee62
8 changed files with 374 additions and 1 deletions

View file

@ -60,6 +60,7 @@ import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js';
import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js';
import WordCount from '@ckeditor/ckeditor5-word-count/src/wordcount.js';
import EditorWatchdog from '@ckeditor/ckeditor5-watchdog/src/editorwatchdog.js';
import PartDBLabel from "./plugins/PartDBLabel/PartDBLabel";
class Editor extends ClassicEditor {}
@ -119,13 +120,16 @@ Editor.builtinPlugins = [
TableProperties,
TableToolbar,
Underline,
WordCount
WordCount,
PartDBLabel
];
// Editor configuration.
Editor.defaultConfig = {
toolbar: {
items: [
'partdb_label',
'heading',
'alignment',
'|',