Skip to content

feat: add minimal Vue package harness with working editor#88

Open
jedrazb wants to merge 1 commit intomainfrom
feat/vue-package-harness
Open

feat: add minimal Vue package harness with working editor#88
jedrazb wants to merge 1 commit intomainfrom
feat/vue-package-harness

Conversation

@jedrazb
Copy link
Contributor

@jedrazb jedrazb commented Mar 4, 2026

Summary

  • Implements the Vue 3 wrapper for @eigenpal/docx-core with a fully working dev server (bun run dev:vue)
  • Adds useDocxEditor composable managing the full editor lifecycle: DOCX parsing → ProseMirror state → layout pipeline → DOM painting
  • Adds DocxEditorVue component, BasicToolbar (bold/italic/underline/alignment), and renderAsync entry point
  • Includes a working demo app at examples/vue/ that loads sample.docx on startup with Open/New/Save functionality
  • Uses core's pre-built commands (toggleBold, toggleItalic, toggleUnderline, setAlignment) for toolbar actions

What's left for contributors

  • Selection overlay and drag-to-select on visible pages
  • Keyboard selection (Shift+arrow) visual feedback
  • Additional toolbar features (font picker, colors, lists, etc.)

Test plan

  • Run bun run dev:vue and verify the editor loads at localhost:5174 with sample document
  • Verify typing works by clicking into the document and using keyboard
  • Verify bold/italic/underline toolbar buttons dispatch commands
  • Verify Open DOCX, New, and Save buttons work
  • Run bun run typecheck to confirm no type errors

🤖 Generated with Claude Code

Implements the Vue wrapper for @eigenpal/docx-core with a working
dev server (bun run dev:vue). Includes useDocxEditor composable,
DocxEditorVue component, BasicToolbar, renderAsync, and a demo app
that loads sample.docx. Contributors can extend with selection
overlay, drag-to-select, and additional toolbar features.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docx-js-editor Ready Ready Preview, Comment Mar 4, 2026 10:56pm

Request Review

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.

1 participant