mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 09:12:36 +10:00
Add emoji command to title editor
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user