feat(editor): add code block copy action

This commit is contained in:
lucaronin
2026-05-03 11:34:56 +02:00
parent c795f118d0
commit dbb12e96fe
20 changed files with 294 additions and 46 deletions

View File

@@ -4,6 +4,10 @@
============================================== */
/* --- Editor root --- */
.editor__blocknote-container {
position: relative;
}
.editor__blocknote-container .bn-editor {
font-family: var(--editor-font-family);
font-size: var(--editor-font-size);
@@ -408,6 +412,12 @@
background-color: var(--editor-code-block-background) !important;
border: 1px solid var(--editor-code-block-border);
color: var(--editor-code-block-text) !important;
position: relative;
}
.editor__code-block-copy {
position: absolute;
z-index: 4;
}
.editor__blocknote-container .bn-block-content[data-content-type="codeBlock"] > pre {