diff --git a/apps/client/src/widgets/type_widgets/text/toolbar.ts b/apps/client/src/widgets/type_widgets/text/toolbar.ts index c8ba56d4d..69e37449f 100644 --- a/apps/client/src/widgets/type_widgets/text/toolbar.ts +++ b/apps/client/src/widgets/type_widgets/text/toolbar.ts @@ -55,6 +55,7 @@ export function buildClassicToolbar(multilineToolbar: boolean) { ...TEXT_FORMATTING_GROUP, items: ["underline", "strikethrough", "|", "superscript", "subscript", "|", "kbd"] }, + "formatPainter", "|", "fontColor", "fontBackgroundColor", @@ -104,6 +105,7 @@ export function buildFloatingToolbar() { ...TEXT_FORMATTING_GROUP, items: [ "strikethrough", "|", "superscript", "subscript", "|", "kbd" ] }, + "formatPainter", "|", "fontColor", "fontBackgroundColor", diff --git a/packages/ckeditor5/src/index.ts b/packages/ckeditor5/src/index.ts index 2d73ecdea..17b2c775e 100644 --- a/packages/ckeditor5/src/index.ts +++ b/packages/ckeditor5/src/index.ts @@ -1,4 +1,5 @@ import "ckeditor5/ckeditor5.css"; +import 'ckeditor5-premium-features/ckeditor5-premium-features.css'; import "./theme/code_block_toolbar.css"; import { COMMON_PLUGINS, CORE_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins.js"; import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } from "ckeditor5"; diff --git a/packages/ckeditor5/src/plugins.ts b/packages/ckeditor5/src/plugins.ts index bbd613a9e..81a8a7fe1 100644 --- a/packages/ckeditor5/src/plugins.ts +++ b/packages/ckeditor5/src/plugins.ts @@ -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 { SlashCommand, Template } from "ckeditor5-premium-features"; +import { SlashCommand, Template, FormatPainter } from "ckeditor5-premium-features"; import type { Plugin } from "ckeditor5"; import CutToNotePlugin from "./plugins/cuttonote.js"; import UploadimagePlugin from "./plugins/uploadimage.js"; @@ -83,7 +83,8 @@ export const CORE_PLUGINS: typeof Plugin[] = [ */ export const PREMIUM_PLUGINS: typeof Plugin[] = [ SlashCommand, - Template + Template, + FormatPainter ]; /**