Skip to content

HAR-9454 - handle table colspan and colgroup#464

Merged
harbournick merged 1 commit into
mainfrom
artem-HAR-9454-v2
Apr 23, 2025
Merged

HAR-9454 - handle table colspan and colgroup#464
harbournick merged 1 commit into
mainfrom
artem-HAR-9454-v2

Conversation

@artem-harbour

Copy link
Copy Markdown
Contributor

No description provided.

@artem-harbour artem-harbour self-assigned this Apr 18, 2025
@artem-harbour
artem-harbour force-pushed the artem-HAR-9454-v2 branch 3 times, most recently from 988b066 to b611d4c Compare April 22, 2025 09:16
@artem-harbour artem-harbour changed the title [WIP] HAR-9454 - handle table colspan and colgroup HAR-9454 - handle table colspan and colgroup Apr 22, 2025
}

if (colwidth.length) {
attributes['colwidth'] = [...colwidth];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the column has colspan greater than 1, then it is important that colwidth attribute has this form [200, 400] (not [600] for colspan 2).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or [200,300,300] for colspan 3 (not [800]).

gridColumnWidths?.forEach((width) => {
colgroup?.forEach((width) => {
elements.push({
name: 'w:gridCol',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is important to save w:gridCol element for the table, it was not saved before. Now we generate the same values ​​that were for the table node in the editor.

@artem-harbour

Copy link
Copy Markdown
Contributor Author

@harbournick this is ready for review.

@artem-harbour
artem-harbour marked this pull request as ready for review April 22, 2025 14:40

@harbournick harbournick left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick
harbournick merged commit 073b790 into main Apr 23, 2025
@harbournick
harbournick deleted the artem-HAR-9454-v2 branch April 23, 2025 17:09
superdoc-bot Bot pushed a commit that referenced this pull request Jul 13, 2026
…IT-1278) (#464)

* fix(super-editor): drop superseded deferred comment SELECTED events (IT-1278)

* fix(super-editor): cancel pending SELECTED timer and report matched highlight ids (IT-1278)

* test(behavior): trim comment-id tokens in IT-1278 highlight matching

Note: this ports only the public subtree changes from a mixed source commit (2 public paths, 1 non-public path ignored).

Ported-From-Source-Repo: superdoc/orbit
Ported-From-Source-Commit: c50dfbe779bd87d5b4dcb2f86e3d42e12cf5967e
Ported-Public-Prefix: superdoc/public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants