@layers-app/editor 0.0.4 → 0.0.5
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 -1
- package/dist/DSD.CVHG1cwA.js +72438 -0
- package/dist/{DSD.B4zOTE_q.js → DSD.D-vGMLsN.js} +2 -2
- package/dist/{DSD.yNW5052Q.js → DSD.DWByepwT.js} +1 -1
- package/dist/{DSD.BwAjvxen.js → DSD.bbYNR0Ry.js} +1 -1
- package/dist/{DSD.KRbYP03K.js → DSD.pCjGF9sT.js} +2 -2
- package/dist/index.js +6 -5
- package/dist/index.umd.cjs +278 -188
- package/package.json +28 -24
- package/dist/DSD.D5yIMAX4.js +0 -111893
package/README.md
CHANGED
|
@@ -114,7 +114,11 @@ const html = `
|
|
|
114
114
|
</p>
|
|
115
115
|
`
|
|
116
116
|
|
|
117
|
-
const onChange = (data) =>
|
|
117
|
+
const onChange = (data: string, text?: string) => {
|
|
118
|
+
// data - html from editor
|
|
119
|
+
// text - text from editor
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
|
|
119
123
|
<Editor initialContent={html} outputFormat="html" onChange={onChange} />
|
|
120
124
|
```
|