mirror of https://github.com/fantasticit/think.git
fix: increase priority for quick-insert, emoji
This commit is contained in:
parent
9726cddfd4
commit
43aea84f7f
|
@ -4,6 +4,7 @@ import { Plugin, PluginKey } from 'prosemirror-state';
|
|||
import { Decoration, DecorationSet } from 'prosemirror-view';
|
||||
import Suggestion from '@tiptap/suggestion';
|
||||
import tippy from 'tippy.js';
|
||||
import { EXTENSION_PRIORITY_HIGHEST } from 'tiptap/constants';
|
||||
import { EmojiList } from '../wrappers/emoji-list';
|
||||
import { emojiSearch, emojisToName } from '../wrappers/emoji-list/emojis';
|
||||
|
||||
|
@ -21,6 +22,8 @@ export const Emoji = Node.create({
|
|||
name: 'emoji',
|
||||
content: 'text*',
|
||||
|
||||
priority: EXTENSION_PRIORITY_HIGHEST,
|
||||
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {},
|
||||
|
|
|
@ -6,12 +6,15 @@ import Suggestion from '@tiptap/suggestion';
|
|||
import tippy from 'tippy.js';
|
||||
import { MenuList } from '../wrappers/menu-list';
|
||||
import { QUICK_INSERT_ITEMS } from '../menus/quick-insert';
|
||||
import { EXTENSION_PRIORITY_HIGHEST } from 'tiptap/constants';
|
||||
|
||||
export const QuickInsertPluginKey = new PluginKey('quickInsert');
|
||||
|
||||
export const QuickInsert = Node.create({
|
||||
name: 'quickInsert',
|
||||
|
||||
priority: EXTENSION_PRIORITY_HIGHEST,
|
||||
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {},
|
||||
|
|
Loading…
Reference in New Issue