@yoopta/blockquote
TypeScript icon, indicating that this package has built-in type declarations

4.9.2 • Public • Published

Blockquote plugin

Blockquote is plugin for Yoopta-Editor

Installation

yarn add @yoopta/blockquote

Usage

import Blockquote from '@yoopta/blockquote';

const plugins = [Blockquote];

const Editor = () => {
  return <YooptaEditor plugins={plugins} />;
};

Default classnames

  • .yoopta-blockquote

Default options

const Blockquote = new YooptaPlugin({
  options: {
    display: {
      title: 'Blockquote',
      description: 'Capture quote',
    },
    shortcuts: ['>'],
  },
});

How to extend

const plugins = [
  Blockquote.extend({
    renders: {
      blockquote: (props) => <YourCustomComponent {...props} />
    },
    options: {
      shortcuts: [`<your custom shortcuts>`],
      display: {
        title: `<your custom title>`,
        description: `<your custom description>`,
      },
      HTMLAttributes: {
        className: '<your classname>',
        // ...other HTML attributes
      },
    },
  });
];

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @yoopta/blockquote

      Weekly Downloads

      1,158

      Version

      4.9.2

      License

      MIT

      Unpacked Size

      9.69 kB

      Total Files

      14

      Last publish

      Collaborators

      • dargo05