draft-js-table icon indicating copy to clipboard operation
draft-js-table copied to clipboard

Documentation?

Open dwightware4 opened this issue 9 years ago • 8 comments

What is NestedUtils? I see that in your code snippet, but I don't see anything with that name in the package.json, and Googling for it didn't turn anything up. I'm trying to use this in a project but when I try to insert a table it blows up:

this.onChange(TableUtils.insertTable( this.props.editorState, 1, 1 ));

insertTable.js:26 Uncaught TypeError: currentBlock.getParentKey is not a function

I'm guessing it's because I'm not using NestedUtils but I haven't been able to figure out what that even is. Thanks!

dwightware4 avatar Sep 12 '16 17:09 dwightware4

Hi @dwightware4 Did you get around with that issue?

kevinguard avatar Oct 27 '16 04:10 kevinguard

Still an issue.

Soletiq avatar Nov 18 '16 20:11 Soletiq

@kevinguard hey I did not.

dwightware4 avatar Nov 18 '16 22:11 dwightware4

The docs mention you need to use this yet-to-be-merge PR of draft-js: https://github.com/facebook/draft-js/pull/388

This is where NestedUtils comes from. Hopefully it gets merged in soon -- also looking for official table support.

jschr avatar Dec 28 '16 17:12 jschr

+1

plh97 avatar Nov 30 '18 08:11 plh97

pls help me to fix it

plh97 avatar Nov 30 '18 08:11 plh97

This project is still under active development ?

space11 avatar Apr 01 '19 07:04 space11

Same issue

rnnyrk avatar Feb 03 '21 10:02 rnnyrk