mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 16:08:58 +01:00
chore(ckeditor): remove original special characters
This commit is contained in:
parent
aabd3da8bf
commit
eb54b0bb32
@ -7,7 +7,6 @@ import StrikethroughAsDel from "./plugins/strikethrough_as_del.js";
|
|||||||
import InternalLinkPlugin from "./plugins/internallink.js";
|
import InternalLinkPlugin from "./plugins/internallink.js";
|
||||||
import ReferenceLink from "./plugins/referencelink.js";
|
import ReferenceLink from "./plugins/referencelink.js";
|
||||||
import RemoveFormatLinksPlugin from "./plugins/remove_format_links.js";
|
import RemoveFormatLinksPlugin from "./plugins/remove_format_links.js";
|
||||||
import SpecialCharactersEmojiPlugin from "./plugins/special_characters_emoji.js";
|
|
||||||
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
|
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
|
||||||
import MarkdownImportPlugin from "./plugins/markdownimport.js";
|
import MarkdownImportPlugin from "./plugins/markdownimport.js";
|
||||||
import MentionCustomization from "./plugins/mention_customization.js";
|
import MentionCustomization from "./plugins/mention_customization.js";
|
||||||
@ -32,7 +31,6 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
|
|||||||
UploadimagePlugin,
|
UploadimagePlugin,
|
||||||
InternalLinkPlugin,
|
InternalLinkPlugin,
|
||||||
RemoveFormatLinksPlugin,
|
RemoveFormatLinksPlugin,
|
||||||
SpecialCharactersEmojiPlugin,
|
|
||||||
IndentBlockShortcutPlugin,
|
IndentBlockShortcutPlugin,
|
||||||
MarkdownImportPlugin,
|
MarkdownImportPlugin,
|
||||||
MentionCustomization,
|
MentionCustomization,
|
||||||
|
|||||||
@ -1,29 +0,0 @@
|
|||||||
import { Plugin, SpecialCharacters } from "ckeditor5";
|
|
||||||
|
|
||||||
export default class SpecialCharactersEmojiPlugin extends Plugin {
|
|
||||||
|
|
||||||
static get requires() {
|
|
||||||
return [ SpecialCharacters ];
|
|
||||||
}
|
|
||||||
|
|
||||||
init() {
|
|
||||||
this.editor.plugins.get('SpecialCharacters').addItems('Emoji', [
|
|
||||||
{ title: 'smiley face', character: '😊' },
|
|
||||||
{ title: 'grinning face', character: '😄' },
|
|
||||||
{ title: 'grinning face with big eyes', character: '😃' },
|
|
||||||
{ title: 'grinning face with sweat', character: '😅' },
|
|
||||||
{ title: 'beaming face with smiling eyes', character: '😃' },
|
|
||||||
{ title: 'neutral face', character: '😐' },
|
|
||||||
{ title: 'rolling on the floor laughing', character: '🤣' },
|
|
||||||
{ title: 'face with tears of joy', character: '😂' },
|
|
||||||
{ title: 'heart', character: '❤️' },
|
|
||||||
{ title: 'hands pressed together', character: '🙏' },
|
|
||||||
{ title: 'thumbs up', character: '👍' },
|
|
||||||
{ title: 'rocket', character: '🚀' },
|
|
||||||
{ title: '100', character: '💯' },
|
|
||||||
{ title: 'wind blowing face', character: '🌬️' },
|
|
||||||
{ title: 'floppy disk', character: '💾' }
|
|
||||||
], { label: 'Emoji' });
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user