mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(ckeditor): remove original special characters
This commit is contained in:
@@ -7,7 +7,6 @@ import StrikethroughAsDel from "./plugins/strikethrough_as_del.js";
|
||||
import InternalLinkPlugin from "./plugins/internallink.js";
|
||||
import ReferenceLink from "./plugins/referencelink.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 MarkdownImportPlugin from "./plugins/markdownimport.js";
|
||||
import MentionCustomization from "./plugins/mention_customization.js";
|
||||
@@ -32,7 +31,6 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||
UploadimagePlugin,
|
||||
InternalLinkPlugin,
|
||||
RemoveFormatLinksPlugin,
|
||||
SpecialCharactersEmojiPlugin,
|
||||
IndentBlockShortcutPlugin,
|
||||
MarkdownImportPlugin,
|
||||
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' });
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user