(function (pageBuilder) {
    var richTextEditor = pageBuilder.richTextEditor = pageBuilder.richTextEditor || {};
    var configurations = richTextEditor.configurations = richTextEditor.configurations || {};
    // Overrides the "default" configuration of the Rich text widget, assuming you have not specified a different configuration
    // The below configuration adds the h5 and h6 values to the paragraphFormat and removes the code value. Also sets the toolbar to be visible without selecting any text.
    configurations["default"] = {
        toolbarVisibleWithoutSelection: true,
        listAdvancedTypes: false,
        quickInsertEnabled: false,
        charCounterCount: true,
        charCounterMax: 600,
        // Buttons
        toolbarButtons: {
            moreText: {
                buttons: [
                    "bold", "italic", "underline"
                ]
            },
            moreParagraph: {
                buttons: ["formatOL", "formatUL"]
            },
            moreRich: {
                buttons: ["insertLink"]
            }
        },
    };
})(window.kentico.pageBuilder);
