stable

Clone or download

Read-only

Add bold option in toolbar

part of story #38627 : Choice of a new Rich Text Editor How to test: In prose mirror editor you have a button `B` to switch into bold In console, when button is clicked a css class `ProseMirror-menu-active` will be toggled When menu is active text you write is in bold, else it's regular You can select some text and press `Ctrl+b` to pass selection in bold Change-Id: Id577a680694c16725ad0ad525ec26ca296f7d6af

Modified Files

Name
M lib/frontend/prose-mirror-editor/package.json +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/pnpm-lock.yaml +29 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/po/fr_FR.po +3 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/index.ts +1 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/index.ts +41 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/keymap.ts +50 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +83 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/nodes.ts +47 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +2 −3 Go to diff View file