{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "docx-editor-auto-save",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "DocxEditor",
  "variant": "auto-save",
  "dependencies": [
    "Syncfusion.AspNetCore.DocumentEditor"
  ],
  "description": "Document editor that automatically saves document changes through a configurable server endpoint.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "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-auto-save.md"
  },
  "files": [
    {
      "target": "src/components/docx-editor-auto-save/docx-editor.cshtml",
      "content": "@page\n@namespace aspnet_core.DocxEditor.AutoSave\n@using Syncfusion.EJ2\n\n    <div class=\"control-section\">\n        <div id='documenteditor_titlebar' class=\"e-de-ctn-title\"></div>\n        <ejs-documenteditorcontainer id=\"container\" height=\"590px\" enableToolbar=\"true\" enableAutoSave=\"true\" autoSaveInterval=\"15000\"></ejs-documenteditorcontainer>\n    </div>\n\n    <script>\n        // Configure the auto-save log panel so the user can see when each\n        // save happened. The actual save endpoint is stubbed in this sample.\n        document.addEventListener('DOMContentLoaded', function () {\n            var container = document.getElementById('container').ej2_instances[0];\n            if (!container) return;\n            var changed = false;\n            container.documentEditor.contentChange = function () { changed = true; };\n            setInterval(function () {\n                if (!changed) return;\n                var span = document.createElement('span');\n                var date = new Date();\n                span.innerHTML = 'Auto saved at <b>' + date.toLocaleTimeString() + '</b><hr>';\n                // For brevity, just log to the console. A full implementation\n                // would POST the document to a server endpoint here.\n                console.log('Auto saved at', date.toISOString());\n                changed = false;\n            }, 15000);\n        });\n    </script>\n"
    }
  ]
}