@draft-js-plugins/editor
Version:
Editor for DraftJS Plugins
6 lines (5 loc) • 342 B
TypeScript
/**
* Creates a composite decorator based on the provided plugins
*/
import { CompositeDecorator, DraftDecorator, EditorState } from 'draft-js';
export default function createCompositeDecorator(decorators: Immutable.List<DraftDecorator>, getEditorState: () => EditorState, setEditorState: (state: EditorState) => void): CompositeDecorator;