mirror of
https://github.com/zadam/trilium.git
synced 2025-11-30 12:34:24 +01:00
feat(ckeditor5): add formatPainter
This commit is contained in:
parent
732494dfc5
commit
15190abb69
@ -55,6 +55,7 @@ export function buildClassicToolbar(multilineToolbar: boolean) {
|
|||||||
...TEXT_FORMATTING_GROUP,
|
...TEXT_FORMATTING_GROUP,
|
||||||
items: ["underline", "strikethrough", "|", "superscript", "subscript", "|", "kbd"]
|
items: ["underline", "strikethrough", "|", "superscript", "subscript", "|", "kbd"]
|
||||||
},
|
},
|
||||||
|
"formatPainter",
|
||||||
"|",
|
"|",
|
||||||
"fontColor",
|
"fontColor",
|
||||||
"fontBackgroundColor",
|
"fontBackgroundColor",
|
||||||
@ -104,6 +105,7 @@ export function buildFloatingToolbar() {
|
|||||||
...TEXT_FORMATTING_GROUP,
|
...TEXT_FORMATTING_GROUP,
|
||||||
items: [ "strikethrough", "|", "superscript", "subscript", "|", "kbd" ]
|
items: [ "strikethrough", "|", "superscript", "subscript", "|", "kbd" ]
|
||||||
},
|
},
|
||||||
|
"formatPainter",
|
||||||
"|",
|
"|",
|
||||||
"fontColor",
|
"fontColor",
|
||||||
"fontBackgroundColor",
|
"fontBackgroundColor",
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import "ckeditor5/ckeditor5.css";
|
import "ckeditor5/ckeditor5.css";
|
||||||
|
import 'ckeditor5-premium-features/ckeditor5-premium-features.css';
|
||||||
import "./theme/code_block_toolbar.css";
|
import "./theme/code_block_toolbar.css";
|
||||||
import { COMMON_PLUGINS, CORE_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins.js";
|
import { COMMON_PLUGINS, CORE_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins.js";
|
||||||
import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } from "ckeditor5";
|
import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } from "ckeditor5";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Autoformat, AutoLink, BlockQuote, BlockToolbar, Bold, CKFinderUploadAdapter, Clipboard, Code, CodeBlock, Enter, FindAndReplace, Font, FontBackgroundColor, FontColor, GeneralHtmlSupport, Heading, HeadingButtonsUI, HorizontalLine, Image, ImageCaption, ImageInline, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Alignment, Indent, IndentBlock, Italic, Link, List, ListProperties, Mention, PageBreak, Paragraph, ParagraphButtonUI, PasteFromOffice, PictureEditing, RemoveFormat, SelectAll, ShiftEnter, SpecialCharacters, SpecialCharactersEssentials, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableSelection, TableToolbar, TextPartLanguage, TextTransformation, TodoList, Typing, Underline, Undo, Bookmark, Emoji, Notification, EmojiMention, EmojiPicker } from "ckeditor5";
|
import { Autoformat, AutoLink, BlockQuote, BlockToolbar, Bold, CKFinderUploadAdapter, Clipboard, Code, CodeBlock, Enter, FindAndReplace, Font, FontBackgroundColor, FontColor, GeneralHtmlSupport, Heading, HeadingButtonsUI, HorizontalLine, Image, ImageCaption, ImageInline, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Alignment, Indent, IndentBlock, Italic, Link, List, ListProperties, Mention, PageBreak, Paragraph, ParagraphButtonUI, PasteFromOffice, PictureEditing, RemoveFormat, SelectAll, ShiftEnter, SpecialCharacters, SpecialCharactersEssentials, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableSelection, TableToolbar, TextPartLanguage, TextTransformation, TodoList, Typing, Underline, Undo, Bookmark, Emoji, Notification, EmojiMention, EmojiPicker } from "ckeditor5";
|
||||||
import { SlashCommand, Template } from "ckeditor5-premium-features";
|
import { SlashCommand, Template, FormatPainter } from "ckeditor5-premium-features";
|
||||||
import type { Plugin } from "ckeditor5";
|
import type { Plugin } from "ckeditor5";
|
||||||
import CutToNotePlugin from "./plugins/cuttonote.js";
|
import CutToNotePlugin from "./plugins/cuttonote.js";
|
||||||
import UploadimagePlugin from "./plugins/uploadimage.js";
|
import UploadimagePlugin from "./plugins/uploadimage.js";
|
||||||
@ -83,7 +83,8 @@ export const CORE_PLUGINS: typeof Plugin[] = [
|
|||||||
*/
|
*/
|
||||||
export const PREMIUM_PLUGINS: typeof Plugin[] = [
|
export const PREMIUM_PLUGINS: typeof Plugin[] = [
|
||||||
SlashCommand,
|
SlashCommand,
|
||||||
Template
|
Template,
|
||||||
|
FormatPainter
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user