ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.59k stars 335 forks source link

weird behavior of "code" feature on the prosemirror.net front page editor #1403

Closed vgu-natbraille closed 1 year ago

vgu-natbraille commented 1 year ago
  1. type 'a'
  2. select 'Type/code' in menu bar
  3. type 'enter'
  4. type 'b'
  5. place the cursor at the end of the first ('a') line
  6. select 'Type/plain' in menu bar

content of the editor

a
b
  1. type 'c'

the second line is now merged with the first line, displaying

ac b

(using firefox 102)

Is does not feel like an intended behavior, or I don't understand its rationale.

marijnh commented 1 year ago

Attached patch should help with this.

vgu-natbraille commented 1 year ago

seems good thanks !