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

Can't type spaces in rich text field with slate editor #4076

Closed
davisagli opened this issue Dec 8, 2022 · 4 comments · Fixed by #4082
Closed

Can't type spaces in rich text field with slate editor #4076

davisagli opened this issue Dec 8, 2022 · 4 comments · Fixed by #4082

Comments

@davisagli
Copy link
Sponsor Member

Describe the bug
When using the slate editor to edit a rich text field, I am unable to type spaces at the beginning/end of a text node.

To Reproduce
Steps to reproduce the behavior:

  1. Create a volto site.
  2. Go to the Content Types control panel and add a new content type.
  3. Edit the schema for the content type and add a Rich text field.
  4. Start adding an instance of the content type. In the rich text field, try to type a sentence.

Expected behavior
Typing spaces should work.

Actual behavior
Hitting the spacebar does not add a space.

Software (please complete the following information):

  • OS: Mac
  • Browser: Firefox
  • Volto Version: 16.3.0 (current master)
  • Plone Version: 6.0.0rc1
  • Plone REST API Version: 8.32.2
@davisagli
Copy link
Sponsor Member Author

@tiberiuichim @robgietema Any pointers where to look for this one?

@davisagli
Copy link
Sponsor Member Author

If I position the cursor in the middle of other existing non-space text, I can type a single space, but any subsequent spaces jump the cursor to the end of the field.

@tiberiuichim
Copy link
Contributor

I'll take a look tomorrow.

@mauritsvanrees
Copy link
Sponsor Member

It is a problem on beta.plone.org as well, when adding a hotfix:
plone/plone.org#35 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants