editorjs-text-color-plugin icon indicating copy to clipboard operation
editorjs-text-color-plugin copied to clipboard

Tool box is badly formatted

Open ngmiduc opened this issue 1 year ago • 4 comments

Screenshot: Screenshot 2024-01-05 at 09 52 17

Info

I running the latest version of editorJs. Somehow the Marker and Colol toolbox are not so well aligned anymore. I added the plugin like explained in the docs with:

  Color: {
    class: ColorPlugin, // if load from CDN, please try: window.ColorPlugin
    config: {
      colorCollections: [
        "#EC7878",
        "#9C27B0",
        "#673AB7",
        "#3F51B5",
        "#0070FF",
        "#03A9F4",
        "#00BCD4",
        "#4CAF50",
        "#8BC34A",
        "#CDDC39",
        "#FFF",
      ],
      defaultColor: "#FF1300",
      type: "text",
    },
  },
  Marker: {
    class: ColorPlugin, // if load from CDN, please try: window.ColorPlugin
    config: {
      defaultColor: "#FFBF00",
      type: "marker",
    },
  },

ngmiduc avatar Jan 05 '24 08:01 ngmiduc

If you remove the Marker configuration, does it work properly for you? I wasn't able to have both type configurations at once, although that may have been my own wrapper library. With just type: "text", the inline tools were working correctly.

ConnectGrid avatar Jan 16 '24 04:01 ConnectGrid

I tried to use only one Tool but they align always badly inside the toolbox. I also tried to use them without configuration but it ends up to the same.

Screenshot 2024-01-16 at 10 45 55 Screenshot 2024-01-16 at 10 46 28

I use it with:

// packages
import ReactEditor from "@stfy/react-editor.js"

but there shouldn't be a problem since it is just a wrapper.

ngmiduc avatar Jan 16 '24 09:01 ngmiduc

same thing on macOS, running safari and chrome, it is not only in react, I'm using [email protected]

abumurasaki avatar Jan 30 '24 11:01 abumurasaki

same thing on macOS, running safari and chrome, it is not only in react, I'm using [email protected]

Update about how you can handled this situation. First update webpack to 5'th version (I used vue upgrade), after that update editorjs-text-color-plugin to version 2.0.4. You can try just update to 2.x.x version without updating webpack, but in my case it was not enough to handle popover issue.

abumurasaki avatar May 30 '24 13:05 abumurasaki