Skip to content

Commit

Permalink
Remove LinkExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Nov 21, 2024
1 parent fc1ae61 commit 845b54e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 157 deletions.
20 changes: 0 additions & 20 deletions src/app/editor/EditLink.svelte

This file was deleted.

124 changes: 0 additions & 124 deletions src/app/editor/LinkExtension.ts

This file was deleted.

14 changes: 1 addition & 13 deletions src/app/editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ import {ctx} from "@welshman/lib"
import type {StampedEvent} from "@welshman/util"
import {signer, profileSearch, RelayMode} from "@welshman/app"
import {createSuggestions} from "./Suggestions"
import {LinkExtension} from "./LinkExtension"
import EditMention from "./EditMention.svelte"
import EditEvent from "./EditEvent.svelte"
import EditBolt11 from "./EditBolt11.svelte"
import EditMedia from "./EditMedia.svelte"
import EditLink from "./EditLink.svelte"
import Suggestions from "./Suggestions.svelte"
import SuggestionProfile from "./SuggestionProfile.svelte"
import {asInline} from "./util"
Expand All @@ -36,16 +34,7 @@ import {FileUploadExtension} from "./FileUpload"
import {getSetting} from "src/engine"
import {TagExtension} from "./TagExtension"

export {
createSuggestions,
LinkExtension,
EditMention,
EditEvent,
EditBolt11,
EditMedia,
EditLink,
Suggestions,
}
export {createSuggestions, EditMention, EditEvent, EditBolt11, EditMedia, Suggestions}
export * from "./util"

type EditorOptions = {
Expand Down Expand Up @@ -116,7 +105,6 @@ export const getEditorOptions = ({
}
},
}),
LinkExtension.extend({addNodeView: () => SvelteNodeViewRenderer(EditLink)}),
Bolt11Extension.extend(asInline({addNodeView: () => SvelteNodeViewRenderer(EditBolt11)})),
NProfileExtension.extend({
addNodeView: () => SvelteNodeViewRenderer(EditMention),
Expand Down

0 comments on commit 845b54e

Please sign in to comment.