UNPKG

@atlaskit/editor-plugin-text-formatting

Version:

Text-formatting plugin for @atlaskit/editor-core

8 lines 776 B
import { boldButtonGroup } from './Toolbar/components/BoldButtonGroup'; import { textFormattingGroupForInlineToolbar } from './Toolbar/components/TextFormattingGroupForInlineToolbar'; import { textFormattingGroupForPrimaryToolbar } from './Toolbar/components/TextFormattingGroups'; import { textFormattingMenuGroup } from './Toolbar/components/TextFormattingMenuGroup'; import { underlineButtonGroup } from './Toolbar/components/UnderlineButtonGroup'; export const getToolbarComponents = (api, options) => { return [...textFormattingGroupForPrimaryToolbar(api), ...textFormattingGroupForInlineToolbar(api), ...boldButtonGroup(api), ...(options !== null && options !== void 0 && options.disableUnderline ? [] : underlineButtonGroup(api)), ...textFormattingMenuGroup(api)]; };