
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@stfy/react-editor.js
Advanced tools
React wrapper component for Editor.js
npm install --save @stfy/react-editor.js
// or Yarn
yarn add @stfy/react-editor.js
import React, { Component } from 'react'
import Editor from '@stfy/react-editor.js'
const App => (
<>
<Editor
autofocus
holderId="editorjs-container"
excludeDefaultTools={['header']}
onChange={(data) => console.log(data)}
customTools={{
header: CustomHeader
}}
onReady={() => console.log('Start!')}
data={{
"time" : 1554920381017,
"blocks" : [
{
"type" : "header",
"data" : {
"text" : "Hello Editor.js",
"level" : 2
}
},
],
"version" : "2.12.4"
}}
/>
</>
)
Name | Type | Default | Description |
---|---|---|---|
autofocus | boolean | true | Set Caret to the Editor after initialisation |
holderId | string | editorjs-holder | Id of Element that should contain the Editor |
onChange | function | null | onChange callback |
onReady | function | null | onReady callback |
data | object | null | Previously saved data that should be rendered |
customTools | object | null | Set custom tools config or overwrite existed |
excludeDefaultTools | array | null | Exclude default tool by tool name |
Name | Package |
---|---|
header | @editorjs/header |
list | @editorjs/list |
inlineCode | @editorjs/inlineCode |
image | @editorjs/image |
embed | @editorjs/embed |
quote | @editorjs/quote |
marker | @editorjs/marker |
code | @editorjs/code |
link | @editorjs/link |
delimiter | @editorjs/delimiter |
raw | @editorjs/raw |
table | @editorjs/table |
warning | @editorjs/warning |
paragraph | @editorjs/paragraph |
checklist | @editorjs/checklist |
Welcome to contribute.
MIT Licensed. License 2019
FAQs
React wrapper component for Editor.js
The npm package @stfy/react-editor.js receives a total of 155 weekly downloads. As such, @stfy/react-editor.js popularity was classified as not popular.
We found that @stfy/react-editor.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.