Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/main' into feature/copy-images-embed

Elian Dorandfb258391348
diff --cc packages/ckeditor5/src/plugins.ts
index 5c89cc823b,b960e39a82..d2248d2663
--- a/packages/ckeditor5/src/plugins.ts
+++ b/packages/ckeditor5/src/plugins.ts
@@@ -26,12 -33,8 +33,9 @@@ import AutoformatMath from "./plugins/m
import CopyAnchorLinkButton from "./plugins/copy_anchor_link.js";
import CopyLinkUrlButton from "./plugins/copy_link_url.js";
import ImageActions from "./plugins/image_actions.js";
+import ClipboardImageEmbed from "./plugins/clipboard_image_embed.js";
+ import TriliumSnippets from "./plugins/snippets/snippets.js";
- // import "@triliumnext/ckeditor5-mermaid/index.css";
- // import "@triliumnext/ckeditor5-admonition/index.css";
- // import "@triliumnext/ckeditor5-footnotes/index.css";
- // import "@triliumnext/ckeditor5-math/index.css";
import CodeBlockToolbar from "./plugins/code_block_toolbar.js";
import CodeBlockLanguageDropdown from "./plugins/code_block_language_dropdown.js";
import CodeBlockInsertParagraph from "./plugins/code_block_insert_paragraph.js";
@@@ -81,7 -89,7 +90,8 @@@ const TRILIUM_PLUGINS: typeof Plugin[]
CopyAnchorLinkButton,
CopyLinkUrlButton,
ImageActions,
+ ClipboardImageEmbed,
+ TriliumSnippets,
];
/**
diff --cc packages/commons/src/lib/options_interface.ts
index 19e34df1cf,8a08fcd590..116e7bb45f
--- a/packages/commons/src/lib/options_interface.ts
+++ b/packages/commons/src/lib/options_interface.ts
@@@ -186,8 -222,10 +222,12 @@@ export interface OptionDefinitions exte
textNoteCompletionEnabled: boolean;
/** Whether keyboard auto-completion for editing commands is triggered when typing `/`. */
textNoteSlashCommandsEnabled: boolean;
+ /** Whether the editor surfaces content-area hints (bottom-corner popups that document how to interact with the element under the caret or pointer, e.g. task-state cycle, collapsible-summary shortcut, drag-handle label). */
+ textNoteContentHintsEnabled: boolean;
+ /** Whether a URL typed or pasted into a text note is automatically turned into a link preview. The "Link preview" dialog is unaffected and always inserts one on request. */
+ textNoteAutoLinkPreviewsEnabled: boolean;
+ /** Whether copying note content embeds internal images as data: URIs so they paste into external apps (internal paste stays reference-based). Hidden kill-switch. */
+ clipboardImageEmbedEnabled: boolean;
backgroundEffects: boolean;
newLayout: boolean;
diff --cc packages/trilium-core/src/routes/api/options.ts
index 0beaf54617,9c4210be24..0e0e6aeead
--- a/packages/trilium-core/src/routes/api/options.ts
+++ b/packages/trilium-core/src/routes/api/options.ts
@@@ -110,7 -123,8 +123,9 @@@ const ALLOWED_OPTIONS = new Set<OptionN
"textNoteEmojiCompletionEnabled",
"textNoteCompletionEnabled",
"textNoteSlashCommandsEnabled",
+ "textNoteContentHintsEnabled",
+ "textNoteAutoLinkPreviewsEnabled",
+ "clipboardImageEmbedEnabled",
"includeNoteDefaultBoxSize",
"layoutOrientation",
"backgroundEffects",
diff --cc packages/trilium-core/src/services/options_init.ts
index a0d986b1a2,f047ed1a79..d8625fc773
--- a/packages/trilium-core/src/services/options_init.ts
+++ b/packages/trilium-core/src/services/options_init.ts
@@@ -242,7 -298,8 +298,9 @@@ const defaultOptions: DefaultOption[]
{ name: "textNoteEmojiCompletionEnabled", value: "true", isSynced: true },
{ name: "textNoteCompletionEnabled", value: "true", isSynced: true },
{ name: "textNoteSlashCommandsEnabled", value: "true", isSynced: true },
+ { name: "textNoteContentHintsEnabled", value: "true", isSynced: true },
+ { name: "textNoteAutoLinkPreviewsEnabled", value: "true", isSynced: true },
+ { name: "clipboardImageEmbedEnabled", value: "true", isSynced: true },
{ name: "includeNoteDefaultBoxSize", value: "medium", isSynced: true },
// HTML import configuration