{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "docx-editor-default",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "DocxEditor",
  "variant": "default",
  "dependencies": [
    "Syncfusion.AspNetCore.DocumentEditor"
  ],
  "description": "Document editor container with title bar, print, and save-as-docx commands.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 2 (v34.1.29)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/docx-editor-default.md"
  },
  "files": [
    {
      "target": "src/components/docx-editor-default/docx-editor.cshtml",
      "content": "@using Syncfusion.EJ2;\r\n\r\n<div class=\"control-section\">\r\n    <ejs-documenteditorcontainer id=\"container\" enableToolbar=\"true\" height=\"590px\"></ejs-documenteditorcontainer>\r\n</div>\r\n\r\n<script>\r\n    var documenteditor;\r\n    ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.Toolbar, ej.documenteditor.Ribbon);\r\n\r\n    document.addEventListener('DOMContentLoaded', function () {\r\n        var container = document.getElementById('container').ej2_instances[0];\r\n        container.toolbarMode = 'Ribbon';\r\n        container.showPropertiesPane = true;\r\n        documenteditor = container.documentEditor;\r\n        documenteditor.serviceUrl = '@Url.Content(\"~/api/documenteditor/\")';\r\n\r\n        var request = new ej.base.Fetch('@Url.Content(\"~/scripts/documenteditor/data-default.json\")', 'GET');\r\n        request.onSuccess = function (data) {\r\n            documenteditor.open(data);\r\n            documenteditor.documentName = 'Getting Started';\r\n        };\r\n        request.send();\r\n    });\r\n</script>\r\n"
    },
    {
      "target": "src/components/docx-editor-default/docx-editor.cshtml.cs",
      "content": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing Microsoft.AspNetCore.Mvc;\r\n\r\nnamespace EJ2CoreSampleBrowser.Controllers {\r\n    public partial class DocumentEditorController : Controller\r\n    {\r\n        public ActionResult Default()\r\n        {\r\n            List < object > exportItems = new List<object>();\r\n            exportItems.Add(new { text = \"Syncfusion Document Text (*.sfdt)\", id = \"sfdt\" });\r\n            exportItems.Add(new { text = \"Word Document (*.docx)\", id = \"word\" });\r\n            exportItems.Add(new { text = \"Word Template (*.dotx)\", id = \"dotx\" });\r\n            exportItems.Add(new { text = \"Plain Text (*.txt)\", id = \"txt\" });\r\n            ViewData[\"ExportItems\"] = exportItems;\r\n            return View();\r\n        }        \r\n    }\r\n}"
    }
  ]
}