Editor refact: rename Editor to Client

This commit is contained in:
Zef Hemel
2023-07-14 16:56:20 +02:00
parent f3936f9b2f
commit 16842a1c4b
20 changed files with 47 additions and 49 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { commandLinkRegex } from "../../common/markdown_parser/parser.ts";
import { ClickEvent } from "$sb/app_event.ts";
import { Decoration, syntaxTree } from "../deps.ts";
import { Editor } from "../editor.ts";
import { Client } from "../client.ts";
import {
ButtonWidget,
decoratorStateField,
@@ -12,7 +12,7 @@ import {
/**
* Plugin to hide path prefix when the cursor is not inside.
*/
export function cleanCommandLinkPlugin(editor: Editor) {
export function cleanCommandLinkPlugin(editor: Client) {
return decoratorStateField((state) => {
const widgets: any[] = [];
// let parentRange: [number, number];