Nomnom Pumpernickle Muffins

    @draft-js-enhance-plugins/blockquote
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    DraftJS Blockquote Plugin

    This is a plugin for the @draft-js-plugins/editor.

    Feature

    • Press enter to insert new line in the same block

    TODO

    • [ ] Support depth value
    • [ ] Press tab or shift+tab to adjust the depth

    Usage

    import { EditorState } from 'draft-js';
    import Editor from '@draft-js-plugins/editor';
    import createBlockquotePlugin from '@draft-js-enhance-plugins/blockquote';
    
    const blockquotePlugin = createBlockquotePlugin();
    
    const plugins = [blockquotePlugin];
    
    function Example() {
      const [editorState, setEditorState] = useState(EditorState.createEmpty());
    
      return (
        <Editor
          editorState={editorState}
          onChange={setEditorState}
          plugins={plugins}
        />
      );
    }

    Install

    npm i @draft-js-enhance-plugins/blockquote

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.99 kB

    Total Files

    6

    Last publish

    Collaborators

    • varieget