Skip to content

Commit

Permalink
fix: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 29, 2024
1 parent b246b81 commit 48e2e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { useCallback, useEffect, useRef, useState } from "react"
import ImageEditor from "./components/ImageEditor"
import LinkEditor from "./components/LinkEditor"
import { LOW_PRIORITY } from "./constants"
import { getSelectedNode } from "./utils"

const supportedBlockTypes = [
"paragraph",
Expand Down
2 changes: 2 additions & 0 deletions src/components/lexical/plugins/ToolbarPlugin/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { $isAtNodeEnd } from "@lexical/selection"

export const getSelectedNode = (selection) => {
const anchor = selection.anchor
const focus = selection.focus
Expand Down

0 comments on commit 48e2e5b

Please sign in to comment.