stable

Clone or download

Read-only

feat: add toolbar transform text

Add a button in the toolbar editor with a dropdown menu to select text type (plain or headers) There is also a shortcut shift + ctrl + {number} to switch between headers style. part of story #38627 : Choice of a new Rich Text Editor Change-Id: Id6d95bcaa248d122babaa61c620752663e63c33c

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +21 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/node-info-retriever.test.ts +1 βˆ’1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/index.ts +7 βˆ’3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/keymap.ts +6 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.test.ts +2 βˆ’2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/remove-link.test.ts +2 βˆ’2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +8 βˆ’6 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/README.md +1 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/get-text-style-menu-items.test.ts +47 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/get-text-style-menu-items.ts +60 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/index.ts +22 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/text-style-dropdown-menu.test.ts +41 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/text-style-dropdown-menu.ts +45 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/text-style.test.ts +93 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/text-style.ts +77 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/transform-text.ts +55 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +3 βˆ’1 Go to diff View file
M lib/frontend/prose-mirror-editor/themes/_toolbar.scss +51 βˆ’0 Go to diff View file