Skip to content

Commit

Permalink
refactor: remove unused thoughtContentEditable in the formatWithTag a…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
trevinhofmann committed Nov 30, 2024
1 parent 092549b commit 7828503
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/actions/formatWithTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export const formatWithTagActionCreator =

const tagRegExp = new RegExp(`<${tag}[^>]*>|<\/${tag}>`, 'g')

const thoughtContentEditable = document.querySelector(`[aria-label="editable-${thought.id}"]`)
if (!thoughtContentEditable) return

const thoughtSelected =
(selection.text()?.length === 0 && strip(thought.value).length !== 0) ||
selection.text()?.length === strip(thought.value).length
Expand Down

0 comments on commit 7828503

Please sign in to comment.