Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Tool box is badly formatted #33

Open
ngmiduc opened this issue Jan 5, 2024 · 4 comments
Open

Tool box is badly formatted #33

ngmiduc opened this issue Jan 5, 2024 · 4 comments

Comments

@ngmiduc
Copy link

ngmiduc commented Jan 5, 2024

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",
    },
  },
@ConnectGrid
Copy link

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.

@ngmiduc
Copy link
Author

ngmiduc commented Jan 16, 2024

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.

@abumurasaki
Copy link

abumurasaki commented Jan 30, 2024

same thing on macOS, running safari and chrome, it is not only in react, I'm using editorjs-text-color-plugin@1.13.1

@abumurasaki
Copy link

same thing on macOS, running safari and chrome, it is not only in react, I'm using editorjs-text-color-plugin@1.13.1

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.

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

No branches or pull requests

3 participants