Skip to content

Clipboard: rich text and pictures for Pages and Keynote - #702

Merged
h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
NikitkaRa:cursor/clipboard-rich-text-7e0f
Oct 14, 2026
Merged

h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
NikitkaRa:cursor/clipboard-rich-text-7e0f

Conversation

@NikitkaRa

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Engine: bold selection copies as HTML; same plain words keep the internal bold body; Pages-style font-weight: bold HTML pastes bold; HTML with different words falls back to plain text
  • UI: Copy of a bold selection offers HTML; Paste of <p><b>Hi</b></p> creates a bold run; Copy of a textless rectangle emits a picture
  • Render: a red rectangle copied as a picture is red in the middle and transparent at the corner
  • macOS pasteboard round trip of HTML and a 1×1 red image
  • cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace (apart from the known macOS environment failures), cargo xtask assets, layers, wasm
  • Manual paste into Pages and Keynote (pasteboard flavours were checked; the apps were not opened)

Copy puts HTML on the pasteboard with the same plain words, so Pages keeps
bold, italic and underline, and a paste of that HTML keeps them here. A
shape with no text copies out as a picture.

Co-authored-by: Cursor <cursoragent@cursor.com>
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit 38e95d8 into storytold:main Oct 14, 2026
h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 14, 2026
…r so Ctrl+V pastes it (#182), not as a picture (#702)

With only an image on the system clipboard egui-winit drops Ctrl+V, so #702's
picture copy of a textless shape undid main's #182 fix. Text keeps #702's HTML,
and empty plain text falls back to the marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 14, 2026
… on land-r5 (#644 #652 #655 #702 #571 #539 #674 #648 #697 #479 #369 #368)

# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	crates/ui-egui/src/ribbon.rs
@echelon

echelon commented Oct 14, 2026

Copy link
Copy Markdown
Member

Thank you for this contribution, @NikitkaRa! It has landed on main and will ship in the next DeckCraft release.

If you haven't already, please come join us on Discord: https://discord.gg/artcraft

anishguduru pushed a commit to anishguduru/deckcraft that referenced this pull request Oct 16, 2026
* render: cancel obsolete in-flight requests

* storytold#623: recheck cancellation after busy publication

* storytold#623: record rendering session in roadmap

* M2: a request cancelled during the parse doesn't leave its worker unable to render

The abort was cached as the worker's parse result, so every later request on that worker failed as
unparsable. Also drops ROADMAP edits that described other PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

3 participants