Trix: Support for tables

Created on 19 Oct 2015  Â·  13Comments  Â·  Source: basecamp/trix

It seems there is no support for Tables in trix? Is this on the roadmap or something that has been intentionally left out?

Most helpful comment

Would like to have this one as well!

All 13 comments

I'd also be interested in tables support.

→ added to Roadmap Questions list!

Would like to have this one as well!

If this can be of any help to anyone, I wrote a post on the concepts behind how we've worked around Trix's document model and implemented table support by simply treating tables as attachments.

I’m about to go real meta here, but the core idea is that we use Trix to edit individual cells’ content. Trix within Trix!

Finally, when clicking Update, we just loop through each cell to get its content from Trix, package the table in a TrixAttachment and insert it into the editor.

That's super cool, @bentremblay. Thanks for sharing!

@bentremblay any chance of sharing the code relating to table support?

@sledge909 I definitely intend to write a follow-up article with some code examples and maybe put something up on GitHub too. Just can't say exactly when...

@bentremblay That'd be great..

@bentremblay Any update on this? thanks!

Hello! Any update on this? thanks )

@bentremblay Would love to see if there's anyway you could share any code. Even if it's not fully pulled out yet.

@bentremblay thanks for the awesome article. We're thinking of using Trix and attachments to do some in-line commenting and "suggesting edits" type features. Table support has come up as a potential requirement as well for this project. Do you have any code you can share regarding your tables as attachments implementation? Thanks!!

@jondkinney Sorry for the late reply. I'm currently working on the next version of our app and will be looking in the near future at re-implementing support for tables, particularly in the new context of Rails Action Text.

I'm aiming at sharing some of that new code instead of the existing implementation. At this point, the time I'll spend extracting and packaging the existing code for sharing is time I won't be spending on the rewrite.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javan picture javan  Â·  4Comments

binchentx picture binchentx  Â·  5Comments

lcsqlpete picture lcsqlpete  Â·  3Comments

atuttle picture atuttle  Â·  4Comments

radcliff picture radcliff  Â·  5Comments