In its minimal form a plugin can be a simple function that accepts module:core/editor/editor~Editor the editor as a parameter:
// A simple plugin that enables a data processor.function MyPlugin( editor ) { editor.data.processor = new MyDataProcessor();} Copy
// A simple plugin that enables a data processor.function MyPlugin( editor ) { editor.data.processor = new MyDataProcessor();}
In its minimal form a plugin can be a simple function that accepts module:core/editor/editor~Editor the editor as a parameter: