Blockquote is plugin for Yoopta-Editor
yarn add @yoopta/blockquote
import Blockquote from '@yoopta/blockquote';
const plugins = [Blockquote];
const Editor = () => {
return <YooptaEditor plugins={plugins} />;
};
- .yoopta-blockquote
const Blockquote = new YooptaPlugin({
options: {
display: {
title: 'Blockquote',
description: 'Capture quote',
},
shortcuts: ['>'],
},
});
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
},
},
});
];