mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
chore(admonitions): remove formatting plugin for now
This commit is contained in:
parent
ee76e81d1f
commit
f487348cc5
@ -96,45 +96,11 @@ export function buildConfig() {
|
|||||||
defaultProtocol: "https://",
|
defaultProtocol: "https://",
|
||||||
allowedProtocols: ALLOWED_PROTOCOLS
|
allowedProtocols: ALLOWED_PROTOCOLS
|
||||||
},
|
},
|
||||||
style: {
|
|
||||||
definitions: buildStyleDefinitions()
|
|
||||||
},
|
|
||||||
// This value must be kept in sync with the language defined in webpack.config.js.
|
// This value must be kept in sync with the language defined in webpack.config.js.
|
||||||
language: "en"
|
language: "en"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildStyleDefinitions() {
|
|
||||||
const element = "p";
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
name: "Note",
|
|
||||||
element,
|
|
||||||
classes: [ "admonition", "note" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Tip",
|
|
||||||
element,
|
|
||||||
classes: [ "admonition", "tip" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Important",
|
|
||||||
element,
|
|
||||||
classes: [ "admonition", "important" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Caution",
|
|
||||||
element,
|
|
||||||
classes: [ "admonition", "caution" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Warning",
|
|
||||||
element,
|
|
||||||
classes: [ "admonition", "warning" ]
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function buildToolbarConfig(isClassicToolbar: boolean) {
|
export function buildToolbarConfig(isClassicToolbar: boolean) {
|
||||||
if (isClassicToolbar) {
|
if (isClassicToolbar) {
|
||||||
const multilineToolbar = utils.isDesktop() && options.get("textNoteEditorMultilineToolbar") === "true";
|
const multilineToolbar = utils.isDesktop() && options.get("textNoteEditorMultilineToolbar") === "true";
|
||||||
@ -149,7 +115,6 @@ function buildClassicToolbar(multilineToolbar: boolean) {
|
|||||||
return {
|
return {
|
||||||
toolbar: {
|
toolbar: {
|
||||||
items: [
|
items: [
|
||||||
"style",
|
|
||||||
"heading",
|
"heading",
|
||||||
"fontSize",
|
"fontSize",
|
||||||
"|",
|
"|",
|
||||||
@ -216,7 +181,6 @@ function buildFloatingToolbar() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
blockToolbar: [
|
blockToolbar: [
|
||||||
"style",
|
|
||||||
"heading",
|
"heading",
|
||||||
"|",
|
"|",
|
||||||
"bulletedList",
|
"bulletedList",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user