Questions tagged [editorjs]
96 questions
20
votes
8 answers
What is the best way to convert EditorJs text editor json to html elements?
I'm trying to convert EditorJs output to Html. EditorJs outputs 'clean' data like this:
{
"time": 1589987527499,
"blocks": [
{
"type": "embded",
"data": {
"service": "youtube",
"source":…

Natnael Ghirma
- 418
- 1
- 5
- 15
10
votes
1 answer
EditorJS in NextJS not able to load plugins
I am trying to get EditorJS working in NextJS. The editor loads fine without plugins, having the only paragraph as a block option. However, when I attempt to add plugins via tools prop console throws the following warning:
editor.js?9336:2 Module…

Roman Burdun
- 103
- 1
- 7
8
votes
0 answers
How to add a fixed top toolbar to editorjs
I want to add a fixed top toolbar to my editorjs like:
I do not find any documentation how to do it on: https://editorjs.io/
Of course, i already googled it, but not really a good result.
To make the toolbar is not an issue, as you can see on the…

mastercheef85
- 2,109
- 3
- 18
- 25
7
votes
1 answer
EditorJS on React
So I wanted to check out this new rich text editor Editor, https://editorjs.io/
I installed the unofficial reactJS version, but I'm not quite sure what I'm doing wrong here... https://www.npmjs.com/package/react-editor-js
Has any used this before?…

Lee
- 73
- 1
- 5
5
votes
4 answers
EditorJS always renders two editors
I am trying to use the Editor of EditorJS. Everything works fine, except that when I first load the page it initializes two editors at the beginning and keeps appending new editors everytime I reload the page. But they are all inside the

PRSHL
- 1,359
- 1
- 11
- 30
5
votes
0 answers
Next.js : Dynamic import of component stuck on Loading stage
I'm using Next.js on a project where the editor component (EditorJS found https://github.com/Jungwoo-An/react-editor-js) can't use SSR. Following the Next docs, I'm trying to dynamically import my Editor component on a page. When I load the page,…

Aspctu Bakr
- 51
- 3
5
votes
0 answers
editorjs image plugin return image url is not picked up
I configured editorjs into my application. I installed image plugin on it so that I can upload an image to the server. Now my server uploads the image and returns JSON with specified format i.e.,
{
"success": 1,
"file": {
"url":…

Lonare
- 3,581
- 1
- 41
- 45
4
votes
1 answer
EditorJs warning "«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead."
I'm using EditorJs but it is giving me this warning in the console
«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead.
How can I use «BlockAPI» in EditorJs?
Here is my EditorJs…

RiadSaidur
- 147
- 2
- 12
4
votes
2 answers
How to load blocks data into EditorJS?
I want to load blocks data dynamically to my EditorJS instance.
I would like to do something like this:
const editor = new EditorJS();
editor.load({ blocks: my_blocks })
I do not seem to find any documentation on how to do it on…

tzador
- 2,535
- 4
- 31
- 37
4
votes
1 answer
Limiting Instance to One Block Style in Editor.js
I am using the Editor.js library.
I want to have a title section on my edit page that only accepts a Header block. This is the code that I have used to implement that:
const titleEditor = new EditorJS({
placeholder: "Enter a title...",
…

Moshe
- 6,011
- 16
- 60
- 112
3
votes
1 answer
Could not find a declaration file for module '@editorjs/image'
I am using editorjs in my project and there are no typescript files in my project.
Could not find a declaration file for module '@editorjs/image'. 'node_modules/@editorjs/image/dist/bundle.js' implicitly has an 'any' type.
Try npm i --save-dev…

ash
- 31
- 1
- 3
3
votes
1 answer
Is possible to convert HTLM to EditorJS json?
I want to show HTML string to editorJS. Any idea for that?
from
The video src attribute
Note: The .ogg fileformat is not…

Duơng Bảo Nam
- 31
- 1
- 2
2
votes
1 answer
Auto-applied inline tools in Editor.js
For a large project I am currently looking into the capabilities of https://editorjs.io/. The documentation is very helpful but I can't find information about the following question. Is there a way to auto-convert user input at the time of writing…

Fynn
- 4,753
- 3
- 32
- 69
2
votes
0 answers
EditorJS : Sanitze HTML in client the best way
I'm using editorJS with Strapi (back) and NextJS (front).
Acutally, I sanitize the data directly in the frontend with a custom parser.
It's working fine, but I've got an issue when I paste content from Word, it adds a span with some style tag.
This…

Kaherdin
- 2,055
- 3
- 23
- 34
2
votes
1 answer
Editor.js rendering/outputting two editors in React
I'm using Editor.js in React (Next.js) & have the original package, not the 3rd party wrappers for react.
For a reason I don't know, it is rendering/showing/outputting two codex-editores on the page! Both of them are working correctly and…

Shahriar
- 1,855
- 2
- 21
- 45