autumnnote-react 1.8.1 → 1.8.3
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 +5 -5
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/autumnnote-react)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
Official **React wrapper** for [AutumnNote](https://
|
|
7
|
+
Official **React wrapper** for [AutumnNote](https://autumn.konexforge.com/) — the zero-dependency WYSIWYG rich-text editor built with vanilla JavaScript.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -54,14 +54,14 @@ function MyEditor() {
|
|
|
54
54
|
|
|
55
55
|
| Prop | Type | Description |
|
|
56
56
|
|---|---|---|
|
|
57
|
-
| `options` | `AsnOptions` | Editor configuration. See [all options](https://
|
|
57
|
+
| `options` | `AsnOptions` | Editor configuration. See [all options](https://autumn.konexforge.com/docs.html#options). |
|
|
58
58
|
| `className` | `string` | CSS class applied to the wrapper `<div>`. |
|
|
59
59
|
| `style` | `CSSProperties` | Inline styles applied to the wrapper `<div>`. |
|
|
60
60
|
| `ref` | `React.Ref<Context>` | Forwarded ref — exposes the `Context` instance after mount. |
|
|
61
61
|
|
|
62
62
|
## Accessing the editor instance
|
|
63
63
|
|
|
64
|
-
The component uses `forwardRef` + `useImperativeHandle` to expose the underlying `Context` object. All [instance methods](https://
|
|
64
|
+
The component uses `forwardRef` + `useImperativeHandle` to expose the underlying `Context` object. All [instance methods](https://autumn.konexforge.com/docs.html#instance-api) are available via the ref:
|
|
65
65
|
|
|
66
66
|
```tsx
|
|
67
67
|
import { useRef } from 'react';
|
|
@@ -128,8 +128,8 @@ const editorRef = useRef<Context>(null);
|
|
|
128
128
|
|
|
129
129
|
## Links
|
|
130
130
|
|
|
131
|
-
- [Documentation](https://
|
|
132
|
-
- [Playground](https://
|
|
131
|
+
- [Documentation](https://autumn.konexforge.com/docs.html)
|
|
132
|
+
- [Playground](https://autumn.konexforge.com/playground.html)
|
|
133
133
|
- [GitHub](https://github.com/cmm-cmm/Autumn-Note)
|
|
134
134
|
- [npm — autumnnote](https://www.npmjs.com/package/autumnnote)
|
|
135
135
|
- [npm — autumnnote-vue](https://www.npmjs.com/package/autumnnote-vue)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autumnnote-react",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Official React wrapper for AutumnNote — zero-dependency WYSIWYG editor. Mount the editor with a single component and access the full Context API via ref.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
|
-
"require": "./dist/index.cjs"
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./index.d.ts"
|
|
13
14
|
}
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"quill-alternative",
|
|
40
41
|
"tinymce-alternative"
|
|
41
42
|
],
|
|
42
|
-
"homepage": "https://
|
|
43
|
+
"homepage": "https://autumn.konexforge.com/",
|
|
43
44
|
"repository": {
|
|
44
45
|
"type": "git",
|
|
45
46
|
"url": "git+https://github.com/cmm-cmm/Autumn-Note.git",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"react": "^18.0.0",
|
|
61
62
|
"react-dom": "^18.0.0",
|
|
62
63
|
"vite": "^6.0.0",
|
|
63
|
-
"autumnnote": "1.8.
|
|
64
|
+
"autumnnote": "1.8.3"
|
|
64
65
|
},
|
|
65
66
|
"scripts": {
|
|
66
67
|
"build": "vite build"
|