-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal table support #3162
Comments
LGTM. And how will headers be represented in the model? |
As for now the row has attribute set: https://github.com/ckeditor/ckeditor5-table/blob/9f245d0eab2b7813845d355ac78796405815c9bb/src/converters.js#L96-L103 I've just fiddled a bit with conversion and how this might be represented so that wasn't overly thought out. Other option is |
Can we represent this on the Also:
|
I'm wondering – what about a situation when you'd like to have a heading row in the middle of the table. E.g. the table may be super long and you might want to repeat the heading in the middle of its length (so to make the table more readable). That wouldn't work with our UI and the model where only the first N rows can be headers. However, I'd say that this would be a specific feature of the editor which automatically repeats the table head every N rows. Does it make sense? Or should be "loosen" this feature to allow creating headings wherever you want? cc @oleq @Comandeer |
They are group together - but yes I can move that to table and remove The other thing is how to deal with more then one As for column headers - as for now I'm supporting this on |
PS. https://stackoverflow.com/questions/5395228/html-tables-thead-vs-th:
So my point about repeating rows was highly invalid. Although, are any browsers actually implementing this feature? :D |
I was thinking about such case: but it is probably too detailed to suport. |
I think that:
|
It'd be good to unify this with heading rows. Sth like this: <table headingRows=1 headingCols=1>
<tr>
<td>heading</td>
<td>heading</td>
<td>heading</td>
</tr>
<tr>
<td>heading</td>
<td>not a heading</td>
<td>not a heading</td>
</tr>
<tr>
<td>heading</td>
<td>not a heading</td>
<td>not a heading</td>
</tr> cc @pjasiun did you imagine something like this? |
Yeah - if we just say that we support most common cases then yes: attribute on the |
I think that in the future, if we'll ever need to mark specific cells as headings, we'll simply mark these specific cells using PS. CKEditor 4 also allows setting headings in the table cell props and in each cell's props dialogs. |
Feature: Initial table support. Closes #4. Closes #7. Closes #9.
I'd like to propose incremental work on table feature as it will take some time and effort to fully develop even in MVP form.
As the minimal table support I'd like to propose:
tbody
/thead
/tfoot
parsing,tr
,td
,th
handling,colspan
&rowspan
).And basically that. No cursor support, no better UI, no widget and probably buggy in one way or another but I think that setting small steps along the way might be useful and probably better to review during that time rather one big PR.
The text was updated successfully, but these errors were encountered: