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

feat: saves cursor position when relationship element is added to richText field #114

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

jmikrut
Copy link
Member

@jmikrut jmikrut commented Mar 25, 2021

Description

Right now, due to a known issue with SlateJS, adding a relationship element to a richText field adds it to the end of the field data, because selection state is lost.

This PR extends the Slate editor in order to add a blurSelection property to the editor when the editor is blurred, so that the position may be restored easily after a new node is added to the field.

Relevant discussion: #86

  • I have read and understand the CONTRIBUTING.md document in this repository

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • Existing test suite passes locally with my changes

@jmikrut jmikrut merged commit d4742a6 into master Mar 29, 2021
@denolfe denolfe deleted the feat/richtext-blur-selection branch July 7, 2022 02:36
chrisvanmook pushed a commit to chrisvanmook/payload that referenced this pull request Jul 15, 2024
* restyles start page

* chore: start page style tweaks

* chore: adjust codeblock overflow

* chore: satisfies the design gods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant