kaaaaaaaaaaai / editorjs-alignment-blocktune

53 stars 24 forks source link

AlignmentTuneTool is not defined #8

Open PINHOf opened 2 years ago

PINHOf commented 2 years ago

After adding the dependency & applied the object into tools, like:

anyTuneName: 
{
  class: AlignmentTuneTool,
  config:
  {
    default: "right",
    blocks: 
    {
      header: 'center',
      list: 'right'
    }
  },
},
paragraph:
{
  class: Paragraph,
  inlineToolbar: true,
  tunes: ['anyTuneName'],
},

The error: AlignmentTuneTool is not defined shows up. I even tried with window.AlignmentTuneTool but no success.

JSFiddle demo

kaaaaaaaaaaai commented 2 years ago

@PINHOf thank you, make the issue, readme is wrong,

so, use AlignmentBlockTune