Skip to content

Making Editor Lite extensible

Denys Mishunov requested to merge dmishunov-editor-lite-extensions into master

What does this MR do?

Introduces the extensibility nature to Editor Lite. The typical scenario would look like this:

import Editor from '~/editor/editor_lite';
import MarkdownExt from '~/editor/markdown.ext';

[...]

const editor = new Editor();
editor.use(MarkdownExt);

This also supports extension with multiple extensions at the same time. For more information, please check the spec in this MR.

Why?

This would allow keeping the core of the Editor Lite lean and maintainable while extending it only when needed. Also would allow fetching extensions on-demand based on different conditions.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

References #223180 (closed)

Edited by Denys Mishunov

Merge request reports