@docx-editor.dev/react 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -14
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,6 +24,13 @@ Install the adapter and its required engine peer:
|
|
|
24
24
|
npm install @docx-editor.dev/react @docx-editor.dev/core
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
- [Open, edit, and save documents](https://www.docx-editor.dev/docs/2.x/react/props).
|
|
30
|
+
- [Compose your editor interface](https://www.docx-editor.dev/docs/2.x/react/composition).
|
|
31
|
+
- [Connect controls through hooks](https://www.docx-editor.dev/docs/2.x/react/hooks).
|
|
32
|
+
- [Translate editor controls](https://www.docx-editor.dev/docs/2.x/i18n).
|
|
33
|
+
|
|
27
34
|
## Quick start
|
|
28
35
|
|
|
29
36
|
Import the stylesheet once and give the editor a container with a defined height:
|
|
@@ -122,20 +129,8 @@ Read `isEnabled` to set the disabled state. Show `disabledReason` when the comma
|
|
|
122
129
|
- [Composition](https://www.docx-editor.dev/docs/2.x/react/composition)
|
|
123
130
|
- [Hooks](https://www.docx-editor.dev/docs/2.x/react/hooks)
|
|
124
131
|
- [Props and ref](https://www.docx-editor.dev/docs/2.x/react/props)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
The adapter does not install either converter. Install only the formats your application uses.
|
|
129
|
-
|
|
130
|
-
Configure `menu.exporters` to enable **File > Export** with the conversion packages. Markdown downloads as one continuous document. PDF conversion requires a Node.js server. Missing converter handlers show an error with setup instructions. See [Export Markdown and PDF](https://www.docx-editor.dev/docs/2.x/guides/export).
|
|
131
|
-
|
|
132
|
-
**File > Print** uses the same PDF handler and opens the browser print dialog. Press Ctrl+P, or Cmd+P on macOS. See [Print documents](https://www.docx-editor.dev/docs/2.x/guides/print).
|
|
133
|
-
|
|
134
|
-
## Accept server updates
|
|
135
|
-
|
|
136
|
-
Use `createDocumentRefresh(editor)` to accept complete DOCX results from your server. The controller preserves the editor instance and scroll position. Each accepted file resets selection and undo history. Results after local edits and collaborative sessions are refused.
|
|
137
|
-
|
|
138
|
-
For highlights, change navigation, and recovery, see [Document refresh API](https://www.docx-editor.dev/docs/2.x/guides/document-refresh).
|
|
132
|
+
- [Export Markdown and PDF](https://www.docx-editor.dev/docs/2.x/guides/export)
|
|
133
|
+
- [Print documents](https://www.docx-editor.dev/docs/2.x/guides/print)
|
|
139
134
|
|
|
140
135
|
## License
|
|
141
136
|
|