Skip to content

How to get the editor instance after calling createStudioEditor #12

Answered by zhangyelong
zhangyelong asked this question in Q&A
Discussion options

You must be logged in to vote

Found an example here: https://app.grapesjs.com/docs-sdk/configuration/pages#example

import createStudioEditor from '@grapesjs/studio-sdk';
import '@grapesjs/studio-sdk/style';

// ...
const onReady = (editor) => {
  // store the editor in your state manager
};

createStudioEditor({
  onReady,
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhangyelong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant