@kodaeditor/core 1.1.0 → 1.1.2
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 +16 -2
- package/dist/kodaeditor-core.umd.cjs +1 -1
- package/dist/kodaeditor.js +1 -1
- package/dist/kodaeditor.umd.cjs +1 -1
- package/dist/serialize.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,12 +32,26 @@ Import is supported directly too: `.docx` (including text inside shapes),
|
|
|
32
32
|
npm i @kodaeditor/core
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
With a bundler, import it once and use the tag anywhere:
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
import '@kodaeditor/core';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Without a bundler, copy the ready file into your public folder and load it with a plain script tag:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
cp node_modules/@kodaeditor/core/dist/kodaeditor.umd.cjs public/kodaeditor.js
|
|
45
|
+
```
|
|
46
|
+
|
|
35
47
|
```html
|
|
36
|
-
<script src="/
|
|
48
|
+
<script src="/kodaeditor.js"></script>
|
|
37
49
|
|
|
38
|
-
<koda-editor
|
|
50
|
+
<koda-editor></koda-editor>
|
|
39
51
|
```
|
|
40
52
|
|
|
53
|
+
Add `license="YOUR-LICENSE-KEY"` when you go live. Leave it out while you develop: a placeholder key is rejected and brings the watermark back even on localhost.
|
|
54
|
+
|
|
41
55
|
Framework wrappers are separate packages: [`@kodaeditor/react`](https://www.npmjs.com/package/@kodaeditor/react),
|
|
42
56
|
[`@kodaeditor/vue3`](https://www.npmjs.com/package/@kodaeditor/vue3),
|
|
43
57
|
[`@kodaeditor/vue2`](https://www.npmjs.com/package/@kodaeditor/vue2),
|