Added support for overriding CSS styles with STYLES page
This commit is contained in:
@@ -67,6 +67,7 @@ export function inlineImagesPlugin(space: Space) {
|
||||
widgets.push(
|
||||
Decoration.widget({
|
||||
widget: new InlineImageWidget(url, title, space),
|
||||
block: true,
|
||||
}).range(node.to),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user