Added support for overriding CSS styles with STYLES page

This commit is contained in:
Zef Hemel
2023-02-28 10:07:20 +01:00
parent 91cc9a13c7
commit 288e67e380
15 changed files with 63 additions and 27 deletions
+1
View File
@@ -67,6 +67,7 @@ export function inlineImagesPlugin(space: Space) {
widgets.push(
Decoration.widget({
widget: new InlineImageWidget(url, title, space),
block: true,
}).range(node.to),
);
},
-2
View File
@@ -1,4 +1,3 @@
import { ClickEvent } from "../../plug-api/app_event.ts";
import { Decoration, syntaxTree } from "../deps.ts";
import { Editor } from "../editor.tsx";
import {
@@ -6,7 +5,6 @@ import {
invisibleDecoration,
isCursorInRange,
} from "./util.ts";
import { LinkWidget } from "./util.ts";
export function linkPlugin(editor: Editor) {
return decoratorStateField((state) => {