Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any way i can implement it on react? #32

Open
istiaqueahmedarik opened this issue Sep 2, 2021 · 2 comments
Open

is there any way i can implement it on react? #32

istiaqueahmedarik opened this issue Sep 2, 2021 · 2 comments

Comments

@istiaqueahmedarik
Copy link

No description provided.

@Khem112
Copy link

Khem112 commented Dec 10, 2021

Try something like this

const EditorJSStyle = require('editorjs-style')

var editor = EditorJS({
  ...
  
  tools: {
    ...
    style: EditorJSStyle.StyleInlineTool,
  },
  
  ...
});

@dhruvsaxena1998
Copy link

With React this should work.

import * as EditorJSInlineStyle from "editorjs-style";


 ...
  tools: {
   ...
  style: EditorJSInlineStyle.StyleInlineTool,
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants