stable

Clone or download

Read-only

fix: quote icon flickering

By default, prose-mirror hide quote icon when the selected node is not compatible with quoteblock. So I built a custom icon, that is always active. I also rewrite the default behavior of quote because it was not compatible with list block. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I0f9d5ac9168d204af4a04a45b37c7859aee21795

Modified Files

Name
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +3 βˆ’5 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/add-blockquote.test.ts +41 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/add-blockquote.ts +34 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/has-previous-node-type.test.ts +56 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/has-previous-node-type.ts +34 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/index.ts +20 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/is-selection-a-block-quote.test.ts +45 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/is-selection-a-block-quote.ts +25 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/quote-command.test.ts +63 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/quote-command.ts +45 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/quote-menu-item.ts +36 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/remove-blockquote.test.ts +49 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/quote/remove-blockquote.ts +41 βˆ’0 Go to diff View file