Skip to content

IT-260 - fix: sync presentationEditor with hidden host#1856

Merged
harbournick merged 10 commits intomainfrom
IT-260
Feb 18, 2026
Merged

IT-260 - fix: sync presentationEditor with hidden host#1856
harbournick merged 10 commits intomainfrom
IT-260

Conversation

@mattConnHarbour
Copy link
Copy Markdown
Contributor

No description provided.

luccas-harbour and others added 4 commits January 22, 2026 13:48
…587) (#1806)

* fix: remove dead code

* refactor: table and paragraph converters to avoid redirection

* test: adjust existing tests

* fix: remove unused imports and dead code

* fix: pass theme colors to node handlers

* refactor: simplify type definitions for converters

---------

Co-authored-by: Luccas Correa <luccas@superdoc.dev>
@linear
Copy link
Copy Markdown

linear Bot commented Jan 28, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 213ec6def1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/super-editor/src/core/presentation-editor/PresentationEditor.ts Outdated
@mattConnHarbour
Copy link
Copy Markdown
Contributor Author

Hi @harbournick @artem-harbour @afn, when you have a chance I'd appreciate your eyes on this! This allows ProseMirror plugin decorations (like highlights) to appear in the presentationEditor by syncing decoration attributes from the hidden host to the painter host.

@mattConnHarbour mattConnHarbour marked this pull request as draft January 28, 2026 19:44
@mattConnHarbour
Copy link
Copy Markdown
Contributor Author

@harbournick @artem-harbour @afn putting into draft until perf. optimizations made.

@mattConnHarbour mattConnHarbour marked this pull request as ready for review January 28, 2026 21:39
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd674854b7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/super-editor/src/core/presentation-editor/PresentationEditor.ts Outdated
@mattConnHarbour
Copy link
Copy Markdown
Contributor Author

@nick adding an example custom plugin to this PR for better tests.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

Visual diffs detected

Pixel differences were found in visual tests. This is not blocking — reproduce locally with cd tests/visual && pnpm docs:download && pnpm test to review diffs.

Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

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

Hey @mattConnHarbour!

Great start! I noticed two things that seem to be blockers for me but please take another look:

1. Stale highlights - sync adds classes but never removes them. When a highlight is cleared, the old classes stay on the DOM.
2. Sync doesn't fire for decoration-only transactions - setMeta transactions don't trigger a repaint, so #syncDecorationAttributes never runs. Could hook into the transaction event instead of update since it fires for everything.

Comment thread packages/super-editor/src/core/presentation-editor/PresentationEditor.ts Outdated
Comment thread packages/super-editor/src/core/presentation-editor/PresentationEditor.ts Outdated
Comment thread packages/super-editor/src/core/presentation-editor/PresentationEditor.ts Outdated
@harbournick harbournick removed the request for review from afn February 18, 2026 17:31
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 d73e83f into main Feb 18, 2026
2 checks passed
@harbournick harbournick deleted the IT-260 branch February 18, 2026 19:34
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 18, 2026

🎉 This PR is included in superdoc v1.15.0-next.14

The release is available on GitHub release

@harbournick
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in superdoc v1.15.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 11, 2026

🎉 This PR is included in superdoc-cli v0.2.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.

5 participants