fix: Text of editor embeds disappearing on click [2727]
Created by: Tirokk
Authored by rbeer Merged
🍰 Pullrequest
Problem
EmbedComponent is inserted as editor content (inside <p>
) and selected with a NodeSelection @click.
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
-
tiptap
- prosemirror editor
Issues
- fixes #2727 (closed)
Todo
-
find solution, i.e. learn how Prosemirror works