stable

Clone or download

Read-only

refacto: remove useless custom_hard_break

`custom_hard_break` has been introduced because we were thinking that original hard_break was defined with a toDOM `["br", 0]`. However this is not the case, the [`hard_break` definition][0] is exactly the same than our `custom_hard_break`. No need to keep twice the same implementation so lets delete our version. No functional changes, you can still introduce hard breaks in list items. Part of story #38627: Choice of a new Rich Text Editor [0]: https://github.com/ProseMirror/prosemirror-schema-basic/blob/master/src/schema-basic.ts#L97-L102 Change-Id: I9007d76adaa95dfc67abdc85ec02ffc1a9853d2c

Modified Files

Name
M lib/frontend/prose-mirror-editor/src/custom_schema.ts +1 −15 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/image/ImageFromSelectionExtractor.test.ts +1 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/keymap.ts +1 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/HeadingInSelectionRetriever.test.ts +1 −1 Go to diff View file