Skip to content

Merge main into stable#2894

Merged
harbournick merged 5 commits intostablefrom
merge/main-into-stable-2026-04-22
Apr 22, 2026
Merged

Merge main into stable#2894
harbournick merged 5 commits intostablefrom
merge/main-into-stable-2026-04-22

Conversation

@harbournick
Copy link
Copy Markdown
Collaborator

No description provided.

harbournick and others added 4 commits April 22, 2026 00:42
Co-authored-by: Artem Nistuley <artem@superdoc.dev>
…rt (#2832)

* feat(executor): add tab character to tab node conversion in text insert

* feat(executor): enhance text insertion to handle restrictive parent content for tab nodes

- Introduced a new integration test for the `executeTextInsert` function to validate behavior when inserting text into nodes that disallow tab nodes, specifically for the `total-page-number` type.
- Updated the `executeTextInsert` function to check if the parent node allows tab nodes before creating them, ensuring that raw tab characters are preserved as text when necessary.
- Added a utility function `parentAllowsNode` to determine if a node type can be inserted based on the parent's content match.

* feat(tabs): implement tab handling in text insertion and document extraction

- Introduced `buildTextWithTabs` and `textBetweenWithTabs` functions to manage tab characters, converting them to tab nodes during text insertion and ensuring they are correctly represented in document extraction.
- Updated existing commands (`insertHeadingAt`, `insertListItemAt`, `insertParagraphAt`) to utilize the new tab handling functions, enhancing text formatting capabilities.
- Modified tests to validate the new tab handling behavior, ensuring that tab characters are preserved and correctly processed in various scenarios.
- Added comprehensive tests for the new helper functions to ensure robust functionality across different document structures.

This update enhances the editor's ability to handle tab characters, improving the overall user experience when working with formatted text.
@harbournick harbournick self-assigned this Apr 22, 2026
@harbournick harbournick changed the base branch from main to stable April 22, 2026 01:06
@harbournick harbournick merged commit 30c1e10 into stable Apr 22, 2026
44 checks passed
@harbournick harbournick deleted the merge/main-into-stable-2026-04-22 branch April 22, 2026 01:34
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in esign v2.4.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc-sdk v1.7.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc v1.28.0

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants