kaaaaaaaaaaai / editorjs-alignment-blocktune

53 stars 24 forks source link

React - not work #3

Open gromov-io opened 3 years ago

gromov-io commented 3 years ago

I click on the Header and get an error https://github.com/Jungwoo-An/react-editor-js

image image

kaaaaaaaaaaai commented 3 years ago

@gromov-io v1.0.2 release I want you to try it.

my testing local code

import Header from "@editorjs/header";
import Quote from "@editorjs/quote";
import AlignmentTuneTool from "../../../dist/bundle";
import AnchorBlockTune from "../../../example/dist/anchor";

export const EDITOR_JS_TOOLS = {
  anyTuneName: {
    class: AlignmentTuneTool,
    config: {
      default: "right",
      blocks: {
        header: "center",
        list: "right"
      }
    }
  },
  anchorTune: AnchorBlockTune,
  header: {
    class: Header,
    tunes: ["anyTuneName", "anchorTune"]
  },
  quote: {
    class:Quote,
    tunes: ["anchorTune"]
  }
};
michaelcais commented 3 years ago

I initially had the same error as @gromov-io, the v1.0.2 release fixed the error for me and is currently working on my Next.js project test.