Skip to content

fix: Text of editor embeds disappearing on click [2727]

Hannes Heine requested to merge pr3356head into pr3356base

Created by: Tirokk

rbeer Authored by rbeer Merged


🍰 Pullrequest

Problem

EmbedComponent is inserted as editor content (inside <p>) and selected with a NodeSelection @click.

click-selects

Changing the schema of the Embed Node has no effect for

  • selectable: false
  • atom: true
  • marks: ''

(see prosemirror NodeSpec)

Workaround

fbcc10e - Prevent selection in entire embed element. This has the obvious downside that no content can be selected for e.g. copying.

Packages

Issues

Todo

Merge request reports