mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 08:39:55 +03:00
Lexical: Started dev API outline
This commit is contained in:
@@ -21,6 +21,7 @@ import {CodeBlockDecorator} from "./ui/decorators/code-block";
|
||||
import {DiagramDecorator} from "./ui/decorators/diagram";
|
||||
import {registerMouseHandling} from "./services/mouse-handling";
|
||||
import {registerSelectionHandling} from "./services/selection-handling";
|
||||
import {EditorApi} from "./api/api";
|
||||
|
||||
const theme = {
|
||||
text: {
|
||||
@@ -94,6 +95,12 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
|
||||
|
||||
registerCommonNodeMutationListeners(context);
|
||||
|
||||
// TODO - Emit this as a public event instead
|
||||
// TODO - Add support to basic editor below
|
||||
const api = new EditorApi(context);
|
||||
// @ts-ignore
|
||||
window.editorApi = api;
|
||||
|
||||
return new SimpleWysiwygEditorInterface(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user