Git Product home page Git Product logo

Comments (6)

sstur avatar sstur commented on September 24, 2024 2

Hey Faddah. Sorry to say but this project is terribly unmaintained at this time. I'll re-open, but unless you or someone wants to contribute, this is unlikely to happen.

from react-rte.

sstur avatar sstur commented on September 24, 2024 1

Not at this time. The draft-js framework. on which this is built, is not well suited for editable tables. This is mostly due to the "flat" structure of the data model. There is some ongoing discussion of a new tree-based data model that supports arbitrarily nested structures (like a table cell with a paragraph inside or another table inside). This would make it possible to support much richer levels of editing.

Within the current constraints I've heard some suggestions about inserting tables as a sort of "foreign object" almost like embedding a spreadsheet. This would expose a limited set of features, maybe plain text in each cell without any ability to nest tables. As a side effect you wouldn't be able to create a text selection that crosses table or cell boundaries. But it would be much easier to implement. Similar to how they do in Quip.

This is probably not going to materialize in the short term.

from react-rte.

sstur avatar sstur commented on September 24, 2024

This is currently not on my roadmap (especially until draft-js has this functionality). Closing for now.

from react-rte.

raliste avatar raliste commented on September 24, 2024

What about today?

from react-rte.

faddah avatar faddah commented on September 24, 2024

Could this please be re-opened and re-examined? it's now a year and a half later, can we see if draft.js has tables, and therefore, your react-rte can have tables, please? we have an education sector client we're building a large enterprise app for and implementing tables is one of their biggest requests.

thank you in advance for your consideration and prompt response to this.

best,

— faddah
portland, oregon, u.s.a.

from react-rte.

faddah avatar faddah commented on September 24, 2024

Thank you, @sstur — i have noticed that other projects like yours that derive from facebook/react's draft.js have implemented tables using the draft.js plugin architecture, like draft-wysiwyg — see https://www.npmjs.com/package/draft-wysiwyg & https://github.com/bkniffler/draft-wysiwyg/ & https://draft-wysiwyg.herokuapp.com/. perhaps you could implement the same? Just a suggestion. Thank you for your prompt response & re-opening this.

best,

— faddah

from react-rte.

Related Issues (20)

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.