stable

Clone or download

Read-only

Prose mirror - toolbar: Add code to toolbar

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

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 +10 −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/toolbar/index.ts +6 −1 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/input-rules.ts +31 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/keymap.ts +3 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +5 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/themes/_toolbar.scss +29 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/themes/editor.scss +1 −0 Go to diff View file