import { Configuration } from './configuration';
import { MentionExtensionConfiguration } from './mention-extension-configuration';
/**
 * EditorConfiguration which will hold mentionExtensionConfig for configuring editor's mention extension and RichTextMarkdownSerializer
 */
export class EditorConfiguration extends Configuration {
    constructor(mentionElements) {
        super(mentionElements);
        this.mentionExtensionConfig = this.isValid
            ? mentionElements.map(mentionElement => new MentionExtensionConfiguration(mentionElement.mentionInternals))
            : [];
    }
}
//# sourceMappingURL=editor-configuration.js.map