mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
feat(admonitions): integrate custom admonitions plugin
This commit is contained in:
parent
507a594198
commit
ee76e81d1f
4
libraries/ckeditor/ckeditor.js
vendored
4
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
2
libraries/ckeditor/ckeditor.js.map
vendored
2
libraries/ckeditor/ckeditor.js.map
vendored
File diff suppressed because one or more lines are too long
@ -179,7 +179,9 @@ const editorConfig = {
|
|||||||
"indentBlockShortcutPlugin",
|
"indentBlockShortcutPlugin",
|
||||||
"removeFormatLinksPlugin",
|
"removeFormatLinksPlugin",
|
||||||
"Footnotes",
|
"Footnotes",
|
||||||
"Mermaid"
|
"Mermaid",
|
||||||
|
"Kbd",
|
||||||
|
"Admonition"
|
||||||
],
|
],
|
||||||
toolbar: {
|
toolbar: {
|
||||||
items: []
|
items: []
|
||||||
|
@ -169,6 +169,7 @@ function buildClassicToolbar(multilineToolbar: boolean) {
|
|||||||
"todoList",
|
"todoList",
|
||||||
"|",
|
"|",
|
||||||
"blockQuote",
|
"blockQuote",
|
||||||
|
"admonition",
|
||||||
"insertTable",
|
"insertTable",
|
||||||
"codeBlock",
|
"codeBlock",
|
||||||
"footnote",
|
"footnote",
|
||||||
@ -223,6 +224,7 @@ function buildFloatingToolbar() {
|
|||||||
"todoList",
|
"todoList",
|
||||||
"|",
|
"|",
|
||||||
"blockQuote",
|
"blockQuote",
|
||||||
|
"admonition",
|
||||||
"codeBlock",
|
"codeBlock",
|
||||||
"insertTable",
|
"insertTable",
|
||||||
"footnote",
|
"footnote",
|
||||||
|
@ -1712,6 +1712,7 @@ body.desktop .ck-content .admonition {
|
|||||||
--accent-color: var(--card-border-color);
|
--accent-color: var(--card-border-color);
|
||||||
border: 1px solid var(--accent-color);
|
border: 1px solid var(--accent-color);
|
||||||
box-shadow: var(--card-box-shadow);
|
box-shadow: var(--card-box-shadow);
|
||||||
|
background: var(--card-background-color);
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin: 1.25em 0;
|
margin: 1.25em 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user