Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

Tirokk
Copy link
Member

@Tirokk Tirokk commented Oct 5, 2020

rbeer Authored by rbeer
Mar 27, 2020
Merged Apr 16, 2020


🍰 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

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

cypress[bot] Authored by cypress[bot]
Mar 31, 2020




Test summary

66 0 0 0


Run details

Project Human-Connection
Status Passed
Commit 5fad066
Started Apr 2, 2020 12:35 AM
Ended Apr 2, 2020 12:55 AM
Duration 20:27 💡
OS Linux Ubuntu Linux - 16.04
Browser Firefox 68

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

cypress[bot] Authored by cypress[bot]
Mar 31, 2020




Test summary

66 0 0 0


Run details

Project Human-Connection
Status Passed
Commit 9621d09c6a ℹ️
Started Apr 2, 2020 12:36 AM
Ended Apr 2, 2020 1:01 AM
Duration 24:45 💡
OS Linux Ubuntu Linux - 16.04
Browser Firefox 68

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

rbeer Authored by rbeer
Apr 2, 2020


I suggest we merge this quickfix (i.e. using the selectable: false flag of prosemiror) to the bug and open another PR for #3395, looking into the overall Embed problem.

@Mogge Mogge closed this Oct 8, 2020
@Mogge Mogge added bug Something isn't working service: webapp Github Import labels Oct 8, 2020
@ulfgebhardt ulfgebhardt deleted the pr3356head branch January 7, 2021 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants