"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useRichTextSetup = void 0;
const dragon_1 = require("@lexical/dragon");
const rich_text_1 = require("@lexical/rich-text");
const utils_1 = require("@lexical/utils");
const react_core_1 = require("@selfcommunity/react-core");
function useRichTextSetup(editor) {
    (0, react_core_1.useIsomorphicLayoutEffect)(() => {
        return (0, utils_1.mergeRegister)((0, rich_text_1.registerRichText)(editor), (0, dragon_1.registerDragonSupport)(editor));
    }, [editor]);
}
exports.useRichTextSetup = useRichTextSetup;
