From 06ebe0a9b37e4c551de743aff691887bacd00431 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 16 Jun 2025 21:10:39 +0300 Subject: [PATCH] feat(slash): include page break --- packages/ckeditor5/src/extra_slash_commands.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ckeditor5/src/extra_slash_commands.ts b/packages/ckeditor5/src/extra_slash_commands.ts index a44e85af5..0592f17e1 100644 --- a/packages/ckeditor5/src/extra_slash_commands.ts +++ b/packages/ckeditor5/src/extra_slash_commands.ts @@ -2,6 +2,7 @@ import type { Editor } from 'ckeditor5'; import type { SlashCommandEditorConfig } from 'ckeditor5-premium-features'; import { icons as admonitionIcons } from '@triliumnext/ckeditor5-admonition'; import { icons as footnoteIcons } from '@triliumnext/ckeditor5-footnotes'; +import IconPageBreak from "@ckeditor/ckeditor5-icons/theme/icons/page-break.svg?raw"; import { COMMAND_NAME as INSERT_DATE_TIME_COMMAND } from './plugins/insert_date_time.js'; import { COMMAND_NAME as INTERNAL_LINK_COMMAND } from './plugins/internallink.js'; import { COMMAND_NAME as INCLUDE_NOTE_COMMAND } from './plugins/includenote.js'; @@ -50,6 +51,13 @@ export default function buildExtraCommands(): SlashCommandDefinition[] { description: "Display the content of another note in this note", icon: noteIcon, commandName: INCLUDE_NOTE_COMMAND + }, + { + id: "page-break", + title: "Page break", + description: "Insert a page break (for printing)", + icon: IconPageBreak, + commandName: "pageBreak" } ]; }