Skip to content

Prosemirror 1.40.0 or later does not allow typing into empty rich-text fields #1871

@rmunn

Description

@rmunn

Describe the bug
When using version 1.40.0 or later (1.40.1 is current) of the prosemirror-view NPM package, you can't type into an empty rich-text field. Pressing Ctrl+A to select all (all the nothing that's in the field) will allow typing into it, and if you have tabbed into the field then you can type into it because of our code that does an automatic select-all when you focus a field via the keyboard.

Downgrading the prosemirror-view package to 1.39.3 resolves the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Create a test project
  2. Click on any rich-text field such as Note or Definition
  3. If the field is empty, type into it and you won't be able to
  4. If the field is not empty, hit backspace until it's empty, and then you won't be able to type into it
  5. Press Ctrl+A to "select all" in the empty field
  6. Now typing into the field will work again

Expected behavior
Typing into an empty rich-text field will insert the characters you typed

Metadata

Metadata

Assignees

Labels

High PriorityUI Designowner: TimbugSomething isn't working💻 FW Liteissues related to the fw lite application, not miniLcm or crdt related

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions