Issue #2415Opened November 15, 2019by sdrebel1 reactions

Editor is not defined: When I import grapejsjs in react

Question

Hi @artf ,

I'm importing grapesjs in React and getting the error editor not defined when we add dragMode in the configuration. I'm not getting this issue when I downloaded the package from dev version.

Version is 0.15.8

If set using window.editor it works, but is there any alternative way or fix?

Answers (2)

artfNovember 17, 20191 reactions

I'm not getting this issue when I downloaded the package from dev version.

The issue with the not defined editor is fixed in dev and will be released in the next version

If set using window.editor it works, but is there any alternative way or fix?

No, for now, the only solution is to have editor globally available

pouyamiralayiNovember 15, 20190 reactions

Hi @sdrebel this project is a good reference on how to use grapesjs inside react. cheers!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.