Skip to content

feat(lists paste): handle paste from Google docs#779

Merged
harbournick merged 2 commits intodevelopfrom
har-10198_google-docs-list-paste
Aug 21, 2025
Merged

feat(lists paste): handle paste from Google docs#779
harbournick merged 2 commits intodevelopfrom
har-10198_google-docs-list-paste

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for handling paste operations from Google Docs. It introduces a new Google Docs paste handler that processes Google Docs-specific HTML structure and converts it into the editor's internal list format.

Key changes:

  • Google Docs paste detection and routing to specialized handler
  • List processing for Google Docs HTML structure with aria-level attributes
  • Updated function signatures to support object parameters instead of individual arguments

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
listImporter.js Adds fallback value for list start when undefined
html-helpers.js Updates function signature to use object parameters
google-docs-paste.js New module implementing Google Docs paste handling
docx-paste.js Improves list text extraction and adds null safety
pasteListHelpers.js Adds Google Docs numbering format mapping and helpers
orderedListUtils.js Handles leading zero removal for double-digit numbers
InputRule.js Adds Google Docs detection and routing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/super-editor/src/core/inputRules/google-docs-paste/google-docs-paste.js Outdated
Comment thread packages/super-editor/src/core/inputRules/google-docs-paste/google-docs-paste.js Outdated
Comment thread packages/super-editor/src/core/inputRules/google-docs-paste/google-docs-paste.js Outdated
Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

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 f891c40 into develop Aug 21, 2025
7 checks passed
@harbournick harbournick deleted the har-10198_google-docs-list-paste branch August 21, 2025 18:20
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