diff --git a/src/index.js b/src/index.js index 8525b22..a2efed1 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,16 @@ // @flow import Draftable from './Draftable'; +import { defaultToolbarConfig } from './toolbar'; import DraftableState, { FORMAT_HTML, FORMAT_MARKDOWN } from './lib/DraftableState'; +import { BLOCK_TYPES_INLINE, BLOCK_TYPES_LISTS, BLOCK_TYPES_INDENT } from './lib/BlockTypes'; export { - Draftable, DraftableState, FORMAT_HTML, FORMAT_MARKDOWN, + Draftable, + DraftableState, + FORMAT_HTML, + FORMAT_MARKDOWN, + defaultToolbarConfig, + BLOCK_TYPES_INLINE, + BLOCK_TYPES_LISTS, + BLOCK_TYPES_INDENT, }; diff --git a/src/lib/BlockTypes.js b/src/lib/BlockTypes.js index 69929d1..4c561d8 100644 --- a/src/lib/BlockTypes.js +++ b/src/lib/BlockTypes.js @@ -32,9 +32,9 @@ export const BLOCK_TYPES_LISTS:Array = [ export const BLOCK_TYPES_INDENT:Array = [ { - label: '->', style: 'indent', Icon: Indent, toggle: 'indent', type: 'style', + label: '<-', style: 'outdent', Icon: Outdent, toggle: 'indent', type: 'style', }, { - label: '<-', style: 'outdent', Icon: Outdent, toggle: 'indent', type: 'style', + label: '->', style: 'indent', Icon: Indent, toggle: 'indent', type: 'style', }, ]; diff --git a/src/styles.css b/src/styles.css index f7181d6..d747fb5 100644 --- a/src/styles.css +++ b/src/styles.css @@ -16,13 +16,13 @@ } .ToolbarGroup-root:not(:first-of-type):not(:last-of-type) { - margin: 0 14px; + margin: 0 24px; } .ToolbarButton-root { border: none; background: none; - margin: 0 8px; + margin: 0 4px; padding: 0; }