Git Product home page Git Product logo

quill-resize-module's People

Contributors

daemonicbookkeeper avatar gbenson-wikia avatar kensnyder avatar lozjackson avatar mudoo avatar nmonterroso avatar whatcould avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

quill-resize-module's Issues

Toolbar not showing

Error at line 90 of Toolbar.js
TypeError: Cannot read property 'style' of undefined

button.children[0] is undefined

Everything works fine but there seems to be an issue with the toolbar. I installed the package through yarn and use it with webpack.

import Quill from 'quill/dist/quill.js';
import QuillResize from 'quill-resize-module';
Quill.register('modules/resize', QuillResize);

Screenshot 2021-07-01 at 22 07 27

React

Could you show an integration with ReactJS?

demo/index.html is busted

I tried looking at demo/index.html for guidance, but that is busted. It looks like
image when I open it up in a browser

Uncaught TypeError: Cannot read property 'style' of undefined

I love what you are trying to accomplish in this fork, but I can't use it, because every time I click on an image I get

Uncaught TypeError: Cannot read property 'style' of undefined
    at Toolbar.js:90
    at Array.forEach (<anonymous>)
    at Toolbar._addToolbarButtons (Toolbar.js:67)
    at Toolbar.onCreate (Toolbar.js:29)
    at QuillResize.js:82
    at Array.forEach (<anonymous>)
    at QuillResize.initializeModules (QuillResize.js:81)
    at QuillResize.show (QuillResize.js:176)
    at QuillResize.judgeShow (QuillResize.js:158)
    at QuillResize.handleClick (QuillResize.js:120)

This only happens with medium and large pictures. When I use small pictures, then nothing happens. Nothing useful or harmful happens when I try to resize a small picture, but I am not as worried about that as I am worried about the exception.

After the exception, there is a little gray box in the top left corner of the picture, as shown in this screenshot
image

Here is the offending code:
image
button.children is an empty array

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.