mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
chore: add missing headings to the rich text editor (#5135)
This commit is contained in:
committed by
GitHub
parent
8771c80c9b
commit
2ee6cd20d8
@@ -3,7 +3,7 @@
|
||||
import React, { useEffect, useState, useCallback } from "react";
|
||||
import { Globe2, Lock, LucideIcon } from "lucide-react";
|
||||
// editor
|
||||
import { EditorMenuItemNames, EditorRefApi } from "@plane/editor";
|
||||
import { EditorRefApi, TEditorCommands } from "@plane/editor";
|
||||
// ui
|
||||
import { Button, Tooltip } from "@plane/ui";
|
||||
// constants
|
||||
@@ -14,7 +14,7 @@ import { cn } from "@/helpers/common.helper";
|
||||
|
||||
type Props = {
|
||||
accessSpecifier?: EIssueCommentAccessSpecifier;
|
||||
executeCommand: (commandName: EditorMenuItemNames) => void;
|
||||
executeCommand: (commandKey: TEditorCommands) => void;
|
||||
handleAccessChange?: (accessKey: EIssueCommentAccessSpecifier) => void;
|
||||
handleSubmit: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
||||
isCommentEmpty: boolean;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import React, { useEffect, useState, useCallback } from "react";
|
||||
import { Check, ChevronDown } from "lucide-react";
|
||||
// editor
|
||||
import { EditorMenuItemNames, EditorRefApi } from "@plane/editor";
|
||||
import { EditorRefApi, TEditorCommands } from "@plane/editor";
|
||||
// ui
|
||||
import { CustomMenu, Tooltip } from "@plane/ui";
|
||||
// constants
|
||||
@@ -18,7 +18,7 @@ type Props = {
|
||||
type ToolbarButtonProps = {
|
||||
item: ToolbarMenuItem;
|
||||
isActive: boolean;
|
||||
executeCommand: (commandName: EditorMenuItemNames) => void;
|
||||
executeCommand: (commandKey: TEditorCommands) => void;
|
||||
};
|
||||
|
||||
const ToolbarButton: React.FC<ToolbarButtonProps> = React.memo((props) => {
|
||||
|
||||
Reference in New Issue
Block a user