Merge, store Lexical editorState

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-03-02 19:42:31 +01:00
777 changed files with 25645 additions and 29568 deletions

View File

@@ -40,14 +40,14 @@ const TextFormatFloatingToolbar = ({
isCode,
isStrikethrough,
}: {
editor: LexicalEditor;
anchorElem: HTMLElement;
isBold: boolean;
isCode: boolean;
isItalic: boolean;
isLink: boolean;
isStrikethrough: boolean;
isUnderline: boolean;
editor: LexicalEditor
anchorElem: HTMLElement
isBold: boolean
isCode: boolean
isItalic: boolean
isLink: boolean
isStrikethrough: boolean
isUnderline: boolean
}): JSX.Element => {
const popupCharStylesEditorRef = useRef<HTMLDivElement | null>(null);
@@ -301,7 +301,7 @@ const useFloatingTextFormatToolbar = (
const FloatingTextFormatToolbarPlugin = ({
anchorElem = document.body,
}: {
anchorElem?: HTMLElement;
anchorElem?: HTMLElement
}): JSX.Element | null => {
const [editor] = useLexicalComposerContext();
return useFloatingTextFormatToolbar(editor, anchorElem);