vue-editor-js icon indicating copy to clipboard operation
vue-editor-js copied to clipboard

Block Tunes seems not to work

Open d4rxt4r opened this issue 3 years ago • 2 comments

I'm trying to set up aligment tune for blocks, but i'm getting this kind of errors:

Uncaught TypeError: Cannot read property 'isInternal' of undefined
Uncaught TypeError: Cannot read property 'holder' of undefined
Uncaught TypeError: Cannot read property 'holder' of undefined
Uncaught TypeError: Cannot read property 'tool' of undefined

The tool repo

Code example:

          header: {
            class: Header,
            config: {
              defaultLevel: 3,
              inlineToolbar: true,
            },
            tunes: ["alignmentSetting"],
          },
          paragraph: {
            class: Paragraph,
            tunes: ["alignmentSetting"],
          },
          underline: Underline,
          list: {
            class: List,
            inlineToolbar: true,
            tunes: ["alignmentSetting"],
          },
          alignmentSetting: {
            class: AlignmentBlockTune,
            config: {
              default: "right",
              blocks: {
                header: "center",
                list: "right",
              },
            },
          },```

d4rxt4r avatar Apr 13 '21 02:04 d4rxt4r

Thank you for your issue. There are so many jobs these days that I can't get my time. I am so sorry. Can you leave a Pull Request?

ChangJoo-Park avatar Apr 14 '21 08:04 ChangJoo-Park

I'm experiencing this same isInternal is not defined error on the Text Alignment tune. Guess it's still not fixed 2 years later? Hard to decipher. I'm using the latest versions of everything, loaded from the CDN.

Note, I'm not using Vue.js, so this issue does not seem to be related to Vue, but instead is local to the Text Alignment Block Tune.

ConnectGrid avatar Jan 14 '24 05:01 ConnectGrid