Issue #563Opened November 23, 2017by faizansaiyed2 reactions

Table <thead> and <tbody> tag gets Omitted

Question

Hello, There is new issue with GrapesJS (maybe). I've created new component using bm.add() in which I've used a table element with <thead> and <tbody> tags. But when getting html using editor.getHtml() method, the <thead> and <tbody> tags gets ommited. Can you please help?

screenshot from 2017-11-23 10-16-20

screenshot from 2017-11-23 10-14-28

Answers (3)

artfNovember 23, 20171 reactions

@fsaiyedOB yeah, I've made the table component like this because at that moment of writing the sorter was acting differently and it was messy ordering rows with tbody-like elements around. Currently, dealing with tables it's not my priority but I'll leave this issue open in case someone else would like to do so

ryandebaNovember 30, 20171 reactions

Thanks! I'll try to get started on this in the next few days.

ryandebaNovember 29, 20170 reactions

Hi @artf - I can probably take a look at this at some point. I've started by just removing the "Clean table rows from non rows" section in the table component (lines 54-68). Can you point me in the right direction of what problems this causes that need to be addressed?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.