Add emoji command to title editor
This commit is contained in:
parent
e62bc6c250
commit
7a47da9273
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ import { History } from "@tiptap/extension-history";
|
||||||
import { buildPageUrl } from "@/features/page/page.utils.ts";
|
import { buildPageUrl } from "@/features/page/page.utils.ts";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import EmojiCommand from '@/features/editor/extensions/emoji-command.ts';
|
||||||
|
|
||||||
export interface TitleEditorProps {
|
export interface TitleEditorProps {
|
||||||
pageId: string;
|
pageId: string;
|
||||||
|
|
@ -67,6 +68,7 @@ export function TitleEditor({
|
||||||
History.configure({
|
History.configure({
|
||||||
depth: 20,
|
depth: 20,
|
||||||
}),
|
}),
|
||||||
|
EmojiCommand
|
||||||
],
|
],
|
||||||
onCreate({ editor }) {
|
onCreate({ editor }) {
|
||||||
if (editor) {
|
if (editor) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue