UNPKG

@atlaskit/editor-plugin-text-formatting

Version:

Text-formatting plugin for @atlaskit/editor-core

9 lines 884 B
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; 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 var getToolbarComponents = function getToolbarComponents(api) { return [].concat(_toConsumableArray(textFormattingGroupForPrimaryToolbar(api)), _toConsumableArray(textFormattingGroupForInlineToolbar(api)), _toConsumableArray(boldButtonGroup(api)), _toConsumableArray(underlineButtonGroup(api)), _toConsumableArray(textFormattingMenuGroup(api))); };