Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eonadan-editorjs-parser
Advanced tools
Easily convert json data from editorjs to html elements
This fork was made to work with my static blog engine and Bootstrap 5.
npm i editorjs-data-parser
import EditorJS from "@editorjs/editorjs";
import CheckList from "@editorjs/checklist";
import Code from "@editorjs/code";
import Header from "@editorjs/header";
import List from "@editorjs/list";
import Embed from "@editorjs/embed";
import Delimiter from "@editorjs/delimiter";
import Marker from "@editorjs/marker";
import Image from "@editorjs/image";
import Raw from "@editorjs/raw";
import Table from "@editorjs/table";
import Warning from "@editorjs/warning";
import { editorJsParser } from "editorjs-data-parser";
const editor = new EditorJS({
tools: {
header: {
class: Header,
inlineToolbar: true
},
list: {
class: List,
inlineToolbar: true
},
checklist: CheckList,
delimiter: Delimiter,
marker: Marker,
embed: {
class: Embed,
inlineToolbar: false,
config: {
services: {
youtube: true,
coub: true
}
}
},
image: {
class: Image,
config: {
endpoints: {
byFile: "http://localhost:8008/uploadFile", // Your backend file uploader endpoint
byUrl: "http://localhost:8008/fetchUrl" // Your endpoint that provides uploading by Url
}
}
},
checkList: CheckList,
code: Code,
raw: Raw,
table: Table,
warning: Warning,
}
});
let btnConvert = document.getElementById("btnConvert");
btnConvert.addEventListener("click", () => {
editor.save().then((outputData) => {
let result = eonasdan.parser(outputData.blocks);
console.log(result);
});
});
npm i --save @editorjs/checklist
npm i --save @editorjs/code
npm i --save @editorjs/header
npm i --save @editorjs/list
npm i --save @editorjs/embed
npm i --save @editorjs/delimiter
npm i --save @editorjs/marker
npm i --save @editorjs/marker
npm i --save @editorjs/image
npm i --save @editorjs/raw
npm i --save @editorjs/table
npm i --save @editorjs/warning
FAQs
Easily convert json data from editorjs to html elements
The npm package eonadan-editorjs-parser receives a total of 0 weekly downloads. As such, eonadan-editorjs-parser popularity was classified as not popular.
We found that eonadan-editorjs-parser 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.