Skip to content

Selection export + toolbar changes - #63

Merged
Silabear merged 9 commits into
mainfrom
feature/selection-export
Aug 14, 2026
Merged

Selection export + toolbar changes#63
Silabear merged 9 commits into
mainfrom
feature/selection-export

Conversation

@Silabear

@Silabear Silabear commented Aug 11, 2026

Copy link
Copy Markdown
Contributor
  • On desktop, you can now export only the selected text by clicking the "Export This" button.
  • Added a settings option to enable/disable the "Export This" button.
  • Decreased the maximum height of the output at the bottom
  • Toolbar changes:
    • The colours are now properly aligned with the other buttons
    • Decreased padding of the colour buttons, so they don't take up too much space
    • Removed the "Upload Font" button - this is already accessible through the Font menu
    • Desktop-only toolbar buttons are now better supported

@Silabear
Silabear requested a review from HoodieRocks August 11, 2026 21:50
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploying tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 937f136
Status: ✅  Deploy successful!
Preview URL: https://f2d2c5d7.tellraw-aav.pages.dev
Branch Preview URL: https://feature-selection-export.tellraw-aav.pages.dev

View logs

@Silabear Silabear self-assigned this Aug 12, 2026

@HoodieRocks HoodieRocks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, feel free to fix the comments before merging

Comment thread src/lib/components/modals/ExportSelectionModal.svelte
Comment thread src/routes/+page.svelte Outdated
Comment on lines +134 to +145
// onSelectionUpdate: ({ editor }) => {
// const { state } = editor;
// const { from, to, empty } = state.selection;

// // Do nothing if it's just a cursor click without a highlighted range
// if (empty) return;

// // Extract the selection slice as JSON
// const selectionJson = state.doc.slice(from, to).content.toJSON();

// console.log("Selected content as JSON:", selectionJson);
// }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove commented out code

@Silabear
Silabear merged commit 545569f into main Aug 14, 2026
6 checks passed
@Silabear Silabear added this to the Late August update milestone Aug 16, 2026
@Silabear
Silabear deleted the feature/selection-export branch September 1, 2026 01:12
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