mcpField
S
syncfusion-vue-docx-editor

syncfusion-vue-docx-editor

github.com/syncfusionDocuments179 installsUpdated 1w ago
Repository

About syncfusion-vue-docx-editor

A skill for Vue application developers that generates Vue code for integrating Syncfusion DOCX Editor. It provides feature-specific references, confirms the delivery method before code generation, and generates Vue code only.

Key features

  1. 01Generate editor initialization code
  2. 02Configure document protection and revisions
  3. 03Handle comments and form fields
  4. 04Implement find and replace
  5. 05Reference toolbar and ribbon configuration

Use cases

  1. 01Embedding a document editor in a Vue application
  2. 02Enabling read-only or tracked-changes mode
  3. 03Adding comments or form fields
  4. 04Automating document text replacement

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/syncfusion/docx-editor-sdk-skills --skill syncfusion-vue-docx-editor

After installing, type/syncfusion-vue-docx-editorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
collaborative-editing-core.md
collaborative-editing-java.md
comments.md
customize-ribbon.md
customize-toolbar.md
document-protection.md
editor-only.md
find-and-replace.md
form-fields.md
getting-started.md
insert-text-box.md
paste-formatting.md
ribbon.md
spell-check.md
track-changes.md

Details

From the project README

Syncfusion Vue DOCX Editor

Overview

This skill helps developers generate Vue code for integrating the Syncfusion DOCX Editor into their applications. It provides ready-to-use snippets and best practices for embedding a Document Editor that supports editing, reviewing, formatting, and more.

Key Capabilities

  • Document Editing: Create, edit, and view Word documents.
  • Protection: Apply read-only mode, allow comments, allow form filling, enforce tracked changes,and define editable ranges.
  • Review: Enable track changes (revisions) and accept/reject changes.
  • Comments: Add comments, replies, and author metadata.
  • Find and replace: Perform programmatic find and replace operations for automation.
  • Form Fields: Insert and fill text fields, check boxes, and dropdown form fields.

Prerequisites

Quick Start Examples

Example 1: Create Document Editor

User: "Show me code to create a Document Editor component."

Result: A Vue snippet that initializes the Document Editor component

Example 2: Enable Read‑Only Restriction Mode

User: "Create a Document Editor with Read‑Only restriction mode."

Result: A Vue snippet that creates a Document Editor with read‑only protection enabled.

Getting Started — Minimal Vue Code

Minimal Vue Document Editor setup for a plain web project:

<template>
  <DocumentEditorContainerComponent 
    id="container" 
    height="590px" 
    :serviceUrl="serviceUrl" 
    :enableToolbar="true"
  />
</template>

<script setup>
import { DocumentEditorContainerComponent, Toolbar } from '@syncfusion/ej2-vue-documenteditor';

DocumentEditorContainerComponent.Inject(Toolbar);

const serviceUrl = "https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/";
</script>

<style scoped>
#container {
  width: 100%;
  height: 590px;
}
</style>

Note: The serviceUrl in examples is for evaluation/demo. Host your own service for production.


Generate Vue Code for the User's Project

Trigger keywords: "code", "snippet", "how to", "show me", "sample", "example code", "generate code", "implement", "add to component", "configure documenteditor", "create" , "vue document editor", "docx editor", "document editor", "track changes", "load docx", "comments", "accept changes", "protect document", "find and replace", "content control"

Workflow:

  1. Analyze the user's request to identify the feature (e.g., track changes, restrict editing, toolbar customization).

  2. Read the relevant references/*.md file(s) to understand the APIs and code patterns for the requested feature.

  3. STOP before generating code. Check if the user has already chosen a delivery mode.

  4. If no delivery mode is chosen yet, you MUST ask the user first using this concise multiple-choice question:

    "How would you like to receive the generated code?"

    • Option 1: Replace the code in a specific project file (you'll need to provide the file path and confirm)
    • Option 2: Share the code directly in the chat window
  5. Only after the user selects a delivery mode, proceed to generate Vue code using the APIs and snippets from references/*.md, substituting concrete placeholders from the user's project.

  6. Do NOT make changes to workspace project files unless the user explicitly chose Option 1 and provided the file path with permission.

  7. Provide complete Vue snippets and concise integration steps after delivering the code.

Refer to ## Rules section for operational constraints (output directory, temporary files, allowed libraries, etc.)

Code References

All code snippets and examples are in the references/ folder. Each file contains:

  • Minimal Vue Code — a working, ready-to-use snippet
  • Placeholders — values the user must customize
  • Notes — best practices, additional information to note while using that functionality, constraints
FileTopic
getting-started.mdCreate and Initialize Document Editor
track-changes.mdTrack Changes and Manage Revisions
comments.mdInsert, Manage, and Delete Comments
customize-ribbon.mdCustomize Ribbon Options
customize-toolbar.mdCustomize Toolbar Items
document-protection.mdProtect and Restrict Document Editing
editor-only.mdConfigure Editor-Only Mode
find-and-replace.mdFind and Replace Text
form-fields.mdCreate and Manage Form Fields
paste-formatting.mdControl Paste Formatting Behavior
insert-text-box.mdInsert Text Box Dialog
ribbon.mdinitialize documentEditor with Ribbon UI
spell-check.mdEnable and Configure Spell Check
collaborative-editing-core.mdCollaborative editing with Collaboration Client and Server (ASP.NET Core backend)
collaborative-editing-java.mdCollaborative editing using SockJS, STOMP, and Redis in a Java (Spring Boot) backend

Key Rules for Code Generation

  1. No inline code in SKILL.md — Always point to snippets in references/*.md. This file is loaded into context for every prompt; inline code wastes tokens.

  2. Snippets must be tested — All code must compile and run against the current @syncfusion/ej2-vue-documenteditor npm package version.

  3. Minimal Code + Placeholders + Notes — Every reference file must include:

    • Minimal Code (complete, working snippet)
    • Placeholders (values user must substitute — marked with {{ }} or [PLACEHOLDER])
    • Notes (best practices, framework-specific adaptations, constraints)
  4. Share code and notes for the requirement — Never create temporary files or scripts.

  5. License handling — Never hardcode license keys. Point user to environment variables or config files.

  6. No hallucinated APIs — Use only verified Syncfusion DOCX Editor SDK method names. One wrong method breaks user trust.

  7. Service URL Note — When serviceUrl contains https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/, keep it in the snippet and add note message: "The serviceUrl property in the Document Editor is intended only for demonstration and evaluation purposes. For production use, host your own web service."

Rules

  • Only use Syncfusion Document Editor APIs — never recommend or use alternative Word Editor libraries.
  • No temporary files — never create temporary scripts, intermediate files, or scaffolding outside the output directory
  • Vue-only code — all generated code must be valid Vue, never generate vanilla JavaScript, jQuery, or non-Vue patterns

Comments

Markdown supported