How to use the draft-js-buttons/lib/utils/createBlockStyleButton function in draft-js-buttons

To help you get started, we’ve selected a few draft-js-buttons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
const HeadlineTwoButton = createBlockStyleButton({
  blockType: 'header-two',
  children: ,
});

const HeadlineThreeButton = createBlockStyleButton({
  blockType: 'header-three',
  children: ,
});

const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',
  children: ,
});

const BlockquoteButton = createBlockStyleButton({
  blockType: 'blockquote',
  children: ,
});

const CalloutButton = createBlockStyleButton({
  blockType: 'callout',
  children: ,
});

export {
  BlockquoteButton,
github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
const HeadlineThreeButton = createBlockStyleButton({
  blockType: 'header-three',
  children: ,
});

const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',
  children: ,
});

const BlockquoteButton = createBlockStyleButton({
  blockType: 'blockquote',
  children: ,
});

const CalloutButton = createBlockStyleButton({
  blockType: 'callout',
  children: ,
});

export {
  BlockquoteButton,
  BoldButton,
  CalloutButton,
  ItalicButton,
  HeadlineTwoButton,
  HeadlineThreeButton,
github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
const BoldButton = createInlineStyleButton({
  style: 'BOLD',
  children: ,
});

const ItalicButton = createInlineStyleButton({
  style: 'ITALIC',
  children: ,
});

const HeadlineTwoButton = createBlockStyleButton({
  blockType: 'header-two',
  children: ,
});

const HeadlineThreeButton = createBlockStyleButton({
  blockType: 'header-three',
  children: ,
});

const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',
  children: ,
});

const BlockquoteButton = createBlockStyleButton({
  blockType: 'blockquote',
github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',
  children: ,
});

const BlockquoteButton = createBlockStyleButton({
  blockType: 'blockquote',
  children: ,
});

const CalloutButton = createBlockStyleButton({
  blockType: 'callout',
  children: ,
});

export {
  BlockquoteButton,
  BoldButton,
  CalloutButton,
  ItalicButton,
  HeadlineTwoButton,
  HeadlineThreeButton,
  OrderedListButton,
  UnorderedListButton,
};
github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
const ItalicButton = createInlineStyleButton({
  style: 'ITALIC',
  children: ,
});

const HeadlineTwoButton = createBlockStyleButton({
  blockType: 'header-two',
  children: ,
});

const HeadlineThreeButton = createBlockStyleButton({
  blockType: 'header-three',
  children: ,
});

const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',
  children: ,
});

const BlockquoteButton = createBlockStyleButton({
  blockType: 'blockquote',
  children: ,
});

const CalloutButton = createBlockStyleButton({
  blockType: 'callout',
github plone / volto / src / config / RichTextEditor / Styles.jsx View on Github external
import unorderedListSVG from '../../icons/list-bullet.svg';
import orderedListSVG from '../../icons/list-numbered.svg';
import blockquoteSVG from '../../icons/quote.svg';
import calloutSVG from '../../icons/megaphone.svg';

const BoldButton = createInlineStyleButton({
  style: 'BOLD',
  children: ,
});

const ItalicButton = createInlineStyleButton({
  style: 'ITALIC',
  children: ,
});

const HeadlineTwoButton = createBlockStyleButton({
  blockType: 'header-two',
  children: ,
});

const HeadlineThreeButton = createBlockStyleButton({
  blockType: 'header-three',
  children: ,
});

const UnorderedListButton = createBlockStyleButton({
  blockType: 'unordered-list-item',
  children: ,
});

const OrderedListButton = createBlockStyleButton({
  blockType: 'ordered-list-item',