Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar not working #141

Open
anchetaWern opened this issue Feb 22, 2022 · 0 comments
Open

Toolbar not working #141

anchetaWern opened this issue Feb 22, 2022 · 0 comments

Comments

@anchetaWern
Copy link

thanks for this library. But I couldn't get the toolbar to work.

Here's the code I'm using:

import Quill from "quill";
import QuillResize from "quill-resize-module";
import 'quill-resize-module/dist/resize.css';

Quill.register("modules/resize", QuillResize);

const fullToolbarOptions = [
  [{ header: [1, 2, 3, false] }],
  ["bold", "italic", "underline"],
  [{ 'list': 'ordered'}, { 'list': 'bullet' }],
  [{ 'align': [] }],
  ["blockquote"],
  ["image", "video"],
];

const quill = new Quill("#editor", {
  theme: "snow",
  modules: {
    toolbar: {
      container: fullToolbarOptions
    },
  
    resize: {
      modules: [ 'Resize', 'DisplaySize', 'Toolbar' ],
    },
  }
});

Here's what it looks like and the error I'm getting. The resize and image size works perfectly. It's just the toolbar not showing up:

Screen Shot 2022-02-22 at 3 07 33 PM

Screen Shot 2022-02-22 at 3 07 29 PM

I even tried with the style options but no luck:

resize: {
  modules: [ 'Resize', 'DisplaySize', 'Toolbar' ],
  toolbarStyles: {
    backgroundColor: 'black',
    border: 'none',
    color: 'white'
  },
  toolbarButtonStyles: {
  
  },
  toolbarButtonSvgStyles: {
 
  },
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant