import { ImageLayoutCommands } from './adapter/image-layout-commands';
import { FroalaToolbarButtons } from './adapter/vue-froala';
// TODO would ideally use a typescript definition
var MRichTextEditorDefaultOptions = /** @class */ (function () {
    function MRichTextEditorDefaultOptions(key, language) {
        if (language === void 0) { language = 'en_CA'; }
        this.key = key;
        this.language = language;
        this.immediateVueModelUpdate = true;
        this.iconsTemplate = 'font_awesome_5';
        this.charCounterCount = false;
        this.charCounterMax = -1;
        this.tableInsertHelper = false;
        this.toolbarSticky = true;
        this.scrollableContainer = 'body'; // The froala version 3 don't support 'scrollableContainer' with undefined value. By default is 'body'.
        this.toolbarStickyOffset = 0;
        this.pluginsEnabled = ['align', 'draggable', 'embedly', 'entities', 'file', 'fontFamily', 'fontSize', 'fullscreen', 'inlineStyle', 'link', 'lists', 'paragraphFormat', 'paragraphStyle', 'quote', 'save', 'specialCharacters', 'table', 'url', 'wordPaste', 'stylesSubMenu', 'listesSubMenu', 'insertionsSubMenu', 'embedly'];
        this.wordPasteModal = false;
        this.initOnClick = true;
        this.wordPasteKeepFormatting = false;
        this.placeholderText = '';
        this.listAdvancedTypes = false;
        this.attribution = false;
        this.paragraphStyles = {};
        this.paragraphMultipleStyles = false;
        this.pasteDeniedTags = ['font'];
        this.pasteDeniedAttrs = ['class'];
        this.pasteAllowedStyleProps = ['text-decoration'];
        this.linkEditButtons = ['linkOpen', 'linkEdit', 'linkRemove'];
        this.linkInsertButtons = [];
        this.imageDefaultWidth = 0; // Sets the default with of the image. Setting it to 0 will not set any width.
        this.imageEditButtons = ['imageReplace', ImageLayoutCommands.IMG_LAYOUT_CMD, 'imageRemove', '|', 'imageLink', 'linkOpen', 'linkEdit', 'linkRemove', '|', 'imageAlt'];
        this.shortcutsEnabled = ['paragraphStyle', 'bold', 'italic', 'subscript', 'superscript', 'formatUL', 'formatOL', 'outdent', 'indent', 'insertLink', 'specialCharacters', 'insertImage', 'fullscreen', 'undo', 'redo'];
        // The list of buttons that appear in the rich text editor's toolbar on large devices (≥ 1200px). 'styles-sub-menu', 'listes-sub-menu'
        this.toolbarButtons = {
            moreText: {
                buttons: ['bold', 'italic', 'subscript', 'superscript'],
                buttonsVisible: FroalaToolbarButtons.moreTextVisible
            },
            moreParagraph: {
                buttons: ['formatUL', 'formatOL', 'outdent', 'indent'],
                buttonsVisible: FroalaToolbarButtons.moreParagraphVisible
            },
            moreRich: {
                buttons: ['insertLink', 'specialCharacters'],
                buttonsVisible: FroalaToolbarButtons.moreRichVisible
            },
            moreMisc: {
                buttons: ['fullscreen'],
                buttonsVisible: FroalaToolbarButtons.moreMiscVisible,
                align: 'right'
            }
        };
        // The list of buttons that appear in the rich text editor's toolbar on extra small devices (< 768px).
        this.toolbarButtonsXS = {
            moreText: {
                buttons: ['bold', 'italic', 'subscript', 'superscript'],
                buttonsVisible: FroalaToolbarButtons.moreTextVisibleXS
            },
            moreParagraph: {
                buttons: ['formatUL', 'formatOL', 'outdent', 'indent'],
                buttonsVisible: FroalaToolbarButtons.moreParagraphVisibleXS
            },
            moreRich: {
                buttons: ['insertLink', 'specialCharacters'],
                buttonsVisible: FroalaToolbarButtons.moreRichVisibleXS
            },
            moreMisc: {
                buttons: ['fullscreen'],
                buttonsVisible: FroalaToolbarButtons.moreMiscVisibleXS,
                align: 'right'
            }
        };
        if (!key) {
            throw new Error('In order to use the rich-text-editor you need to provide a valid froala key.');
        }
    }
    return MRichTextEditorDefaultOptions;
}());
export { MRichTextEditorDefaultOptions };
//# sourceMappingURL=rich-text-editor-options.js.map