volser / quill-table-ui

BSD 3-Clause "New" or "Revised" License
62 stars 15 forks source link

Cannot import modules/table. Are you sure it was registered? #6

Open MeXaaR opened 4 years ago

MeXaaR commented 4 years ago

Hi guys, I have a problem on the module registration with React Quill

I do this

import ReactQuill, { Quill } from 'react-quill';

Quill.register({
  'modules/tableUI': QuillTableUI
}, true)

//component 
<ReactQuill
   id="content" 
   value={content} 
   onChange={onUpdateRichText} 
  modules={{
    table: true,
    tableUI: true,
    ...otherModules
}}
/>

And I've got a big red error quill Cannot import modules/table. Are you sure it was registered?

I tried different thing but no success. Do you have a tip for me to register table module please ?

shengslogar commented 4 years ago

The tables module is only available on the Quill 2.0 dev version and hasn't made it to the stable channel yet. npm install quill@2.0.0-dev.4 is the latest.

rimzzlabs commented 1 year ago

The tables module is only available on the Quill 2.0 dev version and hasn't made it to the stable channel yet. npm install quill@2.0.0-dev.4 is the latest.

I've upgraded my package, I still got the error