1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Lexical: Linked code block to editor, added button

This commit is contained in:
Dan Brown
2024-07-02 17:34:03 +01:00
parent 97f570a4ee
commit d0a5a5ef37
8 changed files with 128 additions and 25 deletions

View File

@ -1,6 +1,6 @@
import {EditorButton} from "./framework/buttons";
import {
blockquote, bold, bulletList, clearFormating, code,
blockquote, bold, bulletList, clearFormating, code, codeBlock,
dangerCallout, details, fullscreen,
h2, h3, h4, h5, highlightColor, horizontalRule, image,
infoCallout, italic, link, numberList, paragraph,
@ -68,6 +68,7 @@ export function getMainEditorFullToolbar(): EditorContainerUiElement {
]),
new EditorButton(image),
new EditorButton(horizontalRule),
new EditorButton(codeBlock),
new EditorButton(details),
]),