@yoopta/editor
Version:
<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311
17 lines • 773 B
TypeScript
import type { YooptaPlugin } from '../../plugins';
import type { SlateElement, YooEditor } from '../types';
/**
* Registers a plugin at runtime into an already-initialized editor.
*
* This rebuilds the full plugin map (including injection resolution)
* and emits a `plugin:register` event so the UI can re-render.
*/
export declare function registerPlugin(editor: YooEditor, pluginInput: YooptaPlugin<Record<string, SlateElement>>): void;
/**
* Unregisters a plugin by type name.
*
* Removes the plugin and any blocks of that type from the editor content.
* Rebuilds the plugin map and emits `plugin:unregister`.
*/
export declare function unregisterPlugin(editor: YooEditor, pluginType: string): void;
//# sourceMappingURL=registerPlugin.d.ts.map