import { withMark, withBlock, withAlignment, withLink, withList, withNormalization, withInsertion, withFormatting, withVoidElements } from '../utils/plugins';
// Create plugins from configuration
export const createPluginsFromConfig = (editor) => {
    let enhancedEditor = editor;
    enhancedEditor = withMark(enhancedEditor);
    enhancedEditor = withBlock(enhancedEditor);
    enhancedEditor = withAlignment(enhancedEditor);
    enhancedEditor = withList(enhancedEditor);
    enhancedEditor = withLink(enhancedEditor);
    enhancedEditor = withInsertion(enhancedEditor);
    enhancedEditor = withFormatting(enhancedEditor);
    enhancedEditor = withVoidElements(enhancedEditor);
    // Add normalization plugin last to ensure it can normalize all other plugin behaviors
    enhancedEditor = withNormalization(enhancedEditor);
    return enhancedEditor;
};
//# sourceMappingURL=pluginFactory.js.map