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 { Decoration, DecorationSet } from 'prosemirror-view';
|
||||||
import Suggestion from '@tiptap/suggestion';
|
import Suggestion from '@tiptap/suggestion';
|
||||||
import tippy from 'tippy.js';
|
import tippy from 'tippy.js';
|
||||||
|
import { EXTENSION_PRIORITY_HIGHEST } from 'tiptap/constants';
|
||||||
import { EmojiList } from '../wrappers/emoji-list';
|
import { EmojiList } from '../wrappers/emoji-list';
|
||||||
import { emojiSearch, emojisToName } from '../wrappers/emoji-list/emojis';
|
import { emojiSearch, emojisToName } from '../wrappers/emoji-list/emojis';
|
||||||
|
|
||||||
|
@ -21,6 +22,8 @@ export const Emoji = Node.create({
|
||||||
name: 'emoji',
|
name: 'emoji',
|
||||||
content: 'text*',
|
content: 'text*',
|
||||||
|
|
||||||
|
priority: EXTENSION_PRIORITY_HIGHEST,
|
||||||
|
|
||||||
addOptions() {
|
addOptions() {
|
||||||
return {
|
return {
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
|
|
|
@ -6,12 +6,15 @@ import Suggestion from '@tiptap/suggestion';
|
||||||
import tippy from 'tippy.js';
|
import tippy from 'tippy.js';
|
||||||
import { MenuList } from '../wrappers/menu-list';
|
import { MenuList } from '../wrappers/menu-list';
|
||||||
import { QUICK_INSERT_ITEMS } from '../menus/quick-insert';
|
import { QUICK_INSERT_ITEMS } from '../menus/quick-insert';
|
||||||
|
import { EXTENSION_PRIORITY_HIGHEST } from 'tiptap/constants';
|
||||||
|
|
||||||
export const QuickInsertPluginKey = new PluginKey('quickInsert');
|
export const QuickInsertPluginKey = new PluginKey('quickInsert');
|
||||||
|
|
||||||
export const QuickInsert = Node.create({
|
export const QuickInsert = Node.create({
|
||||||
name: 'quickInsert',
|
name: 'quickInsert',
|
||||||
|
|
||||||
|
priority: EXTENSION_PRIORITY_HIGHEST,
|
||||||
|
|
||||||
addOptions() {
|
addOptions() {
|
||||||
return {
|
return {
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
|
|
Loading…
Reference in New Issue