2.11.4 • Published 1 month ago

@editorjs/paragraph v2.11.4

Weekly downloads
7,922
License
MIT
Repository
github
Last release
1 month ago

npm.io

Paragraph Tool for Editor.js

Basic text Tool for the Editor.js.

Installation

Get the package

yarn add @editorjs/paragraph

Include module at your application

import Paragraph from '@editorjs/paragraph';

Usage

The Paragraph tool is included at editor.js by default. So you don't need to connect it manually. If you want to connect your customized version of this tool, do not forget to use the defaultBlock option of the editor config.

Add a new Tool to the tools property of the Editor.js initial config.

var editor = new EditorJS({
  ...

  tools: {
    ...
    paragraph: {
      class: Paragraph,
      inlineToolbar: true,
    },
  }

  ...
});

Config Params

The Paragraph Tool supports these configuration parameters:

FieldTypeDescription
placeholderstringThe placeholder. Will be shown only in the first paragraph when the whole editor is empty.
preserveBlankboolean(default: false) Whether or not to keep blank paragraphs when saving editor data

Output data

FieldTypeDescription
textstringparagraph's text
{
    "type" : "paragraph",
    "data" : {
        "text" : "Check out our projects on a <a href=\"https://github.com/codex-team\">GitHub page</a>.",
    }
}
byevolution@infinitebrahmanuniverse/nolb-_edi@everything-registry/sub-chunk-277aalda-editorlegitbee-typescriptlegitbee-core-alphaidea-reacthorul-editorhsl-strapi-plugin-react-editorjslourd-componentslourd-components-t@bigbossstudio/strapi-plugin-editorjs@celmino/sdk-console@celmino/sdk@chizhik/ui-lib@brandontle/react-editor.js@softkit/strapi-plugin-react-editorjs@smileeye.edu.vn/editor@todokek/react-editor.js@canburaks/fibs-editor@carabi/ui@texttree/notepad-rcl@tienlucky/storage@datahu/client@datahu/component@datahu/designer@culturehacklabs/genki-reloadeddotailadrafts@demoflow/editor@deskhero/dh_ui@dicarbene/nuxt3-editorjs@djitsu/editor@devfamily/admiralddoctors-editordoreacta@emilienkopp/ejs-factory@emilienkopp/html-factory@fakel/rest-admin@highoutput/neyarbyevolution-components@hyype-inc/widget@wulperstudio/wulper-studio-editoreditorjs-footnoteseditorjs-form-buildereditorjs-reacteditorjs-vueeditor-js-componenteditor-js-themefibs-editornode-red-contrib-ui-editornuxt3-editorjsmurph-projectmtxtrpcv2quickvue-editorjsreact-editor-simple-imagereact-editor-simple-image.jssarman-vue-editor-jsreusecoreui-duckumomega-foundationstd-pagesrinstallersstrapi-plugin-editorstrapi-plugin-editorjsstrapi-plugin-editorjs-fieldstrapi-plugin-field-editorjsstrapi-plugin-k-editorjsstrapi-editorjsstrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedstrapi-academy-plus-editorjs@questflow/canvas@nwire/amit-design-system@rainyland-dev/strapi-plugin-editorjs@rypock/react-frontenduse-editor-js@om-mediaworks/shacl-form@realmocean/editor@realmocean/sdk@oak-digital/strapi-plugin-react-editorjs@searpent/react-image-annotate@acf-int/strapi-plugin-editorjs@acf-int/strapi-plugin-react-editorjs@alkhipce/editorjs-aitext@virtual-spirit/vspace-labs@vt7/vue-editor@keystonejs-contrib/fields-editorjs@zdzcode/zc-web-vuejs-core@zalastax/nolb-_edi@kaniyarasu/react-editor.jsaalda--editorall-in-one-editorjs@mohamed-karawia/library
2.11.4

1 month ago

2.11.2

7 months ago

2.11.3

7 months ago

2.11.1

7 months ago

2.10.0

9 months ago

2.9.0

1 year ago

2.8.0

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

2.6.0

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.1

5 years ago