Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to implement Editor.js in nextjs?

See original GitHub issue

Issue Description

How to implement Editor.js in nextjs?

I tried to implement Editor.js in Nextjs but I failed to do it.

Here is my code.

import dynamic from 'next/dynamic';

const EditorJs = dynamic(import('react-editor-js'), {
  ssr: false,
  loading: () => <p>Loading ...</p>,

const Editor = () => {
  return (
      <EditorJs />

export default Editor;


Server Error
ReferenceError: window is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.

Can someone help me to implement EditorJs in NextJs?


Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

wfmonstercommented, Nov 6, 2021

In my search I found this recent medium article on this.

Eloi-Perezcommented, Nov 30, 2021

In my search I found this recent medium article on this.

Following a bit of that example, I’ve created a repository with a fully working editor.js in Next.js. I’m still working on it. But the basic functionality is already there. Anyone interested feel free to copy or fork the repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developing a modern Blogging Application with Next.js and ...
Now let's go to the create page and use our Editor component. We just need to import the custom Editor component and pass...
Read more >
EditorJS in NextJS not able to load plugins - Stack Overflow
You have to create a seperate component and then import all your tools there: import EditorJs from "react-editor-js"; import Embed from ...
Read more >
Editing the Page - Create a Next.js App
Editing the Page · Make sure the Next.js development server is still running. · Open pages/index.js with your text editor. · Find the...
Read more >
Editor JS Rich Text Editor in Next JS Project | - YouTube
Editor JS is a Next generation block styled editor. With Its given documentation, it is easy to add this editor on simple JS...
Read more >
Build and Deploy a Markdown Editor Using Next.js, TypeScript ...
Build Markdown Editor Using CodeMirror 6 · Install Dependencies · Create React Hook to Provide Editor View Component · Consume the React Hook...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found