@kodaeditor/core 1.0.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/LICENSE.md +83 -0
- package/README.md +94 -0
- package/THIRD-PARTY-LICENSES.txt +1811 -0
- package/dist/commands.d.ts +15 -0
- package/dist/docx-alignment.d.ts +14 -0
- package/dist/docx-breaks.d.ts +31 -0
- package/dist/docx-forms.d.ts +28 -0
- package/dist/docx-headers.d.ts +22 -0
- package/dist/docx-images.d.ts +41 -0
- package/dist/docx-import.d.ts +36 -0
- package/dist/docx-math.d.ts +18 -0
- package/dist/docx-styles.d.ts +53 -0
- package/dist/docx-symbols.d.ts +19 -0
- package/dist/docx-text-styles.d.ts +27 -0
- package/dist/editor.d.ts +372 -0
- package/dist/fallback.d.ts +13 -0
- package/dist/floatingToolbar.d.ts +7 -0
- package/dist/group-icons.d.ts +17 -0
- package/dist/i18n.d.ts +214 -0
- package/dist/icons.d.ts +1 -0
- package/dist/image-view.d.ts +27 -0
- package/dist/import-formats.d.ts +41 -0
- package/dist/index.d.ts +15 -0
- package/dist/kodaeditor-core.umd.cjs +1 -0
- package/dist/kodaeditor.js +1 -0
- package/dist/kodaeditor.umd.cjs +1 -0
- package/dist/license.d.ts +90 -0
- package/dist/markdown.d.ts +4 -0
- package/dist/menubar.d.ts +60 -0
- package/dist/offline-license.d.ts +36 -0
- package/dist/pagination.d.ts +11 -0
- package/dist/paste.d.ts +54 -0
- package/dist/pdf-import-cdn.d.ts +2 -0
- package/dist/pdf-import.d.ts +8 -0
- package/dist/print.d.ts +18 -0
- package/dist/rtf-images.d.ts +24 -0
- package/dist/schema.d.ts +14 -0
- package/dist/search.d.ts +17 -0
- package/dist/serialize.d.ts +20 -0
- package/dist/slashMenu.d.ts +8 -0
- package/dist/styles.d.ts +8 -0
- package/dist/table-split.d.ts +26 -0
- package/dist/table-view.d.ts +34 -0
- package/dist/tableColumnTrade.d.ts +15 -0
- package/dist/tableToolbar.d.ts +14 -0
- package/dist/toc-view.d.ts +23 -0
- package/dist/toolbar-editor.d.ts +89 -0
- package/dist/validate-signature.d.ts +64 -0
- package/dist/vendor/pdf.min.mjs +29 -0
- package/dist/vendor/pdf.worker.min.mjs +29 -0
- package/dist/vendor/xlsx.full.min.js +24 -0
- package/dist/web-component.d.ts +383 -0
- package/dist/xlsx-import-cdn.d.ts +1 -0
- package/dist/xlsx-import.d.ts +2 -0
- package/package.json +88 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# KodaEditor — Commercial License (DRAFT)
|
|
2
|
+
|
|
3
|
+
> **Status: draft, prepared ahead of public npm publish — has not had a
|
|
4
|
+
> legal review yet.** Placeholder good enough to make `npm pack`/`npm
|
|
5
|
+
> publish` metadata accurate during Phase 1 preparation (see
|
|
6
|
+
> `docs/LAUNCH-ROADMAP_2026-09-01.md`). Get this reviewed by a lawyer
|
|
7
|
+
> before the packages are actually published to the public npm registry.
|
|
8
|
+
|
|
9
|
+
Copyright © the KodaEditor authors. All rights reserved except as
|
|
10
|
+
explicitly granted below.
|
|
11
|
+
|
|
12
|
+
## 1. What this covers
|
|
13
|
+
|
|
14
|
+
This license applies to the `@kodaeditor/*` npm packages (the "Software"):
|
|
15
|
+
the editor core, its framework adapters, and any bundled assets shipped
|
|
16
|
+
inside them.
|
|
17
|
+
|
|
18
|
+
## 2. Evaluation use
|
|
19
|
+
|
|
20
|
+
You may install, run and evaluate the Software free of charge, including
|
|
21
|
+
in non-production environments. Evaluation use may display a watermark
|
|
22
|
+
and/or omit certain premium features until a valid license key is applied.
|
|
23
|
+
|
|
24
|
+
## 3. Licensed use
|
|
25
|
+
|
|
26
|
+
A paid license unlocks full functionality (including premium features
|
|
27
|
+
gated behind a license key) for **one production domain** (its
|
|
28
|
+
subdomains, on request) per license purchased. A license is a one-time
|
|
29
|
+
payment; it does not expire and is not a subscription. It is tied to the
|
|
30
|
+
domain it was issued for and is not transferable to unrelated products or
|
|
31
|
+
resold as a standalone offering.
|
|
32
|
+
|
|
33
|
+
## 4. Restrictions
|
|
34
|
+
|
|
35
|
+
You may not:
|
|
36
|
+
- Redistribute, sublicense, or resell the Software (or a modified version
|
|
37
|
+
of it) as a standalone or competing product.
|
|
38
|
+
- Remove, disable, or circumvent the license-check mechanism.
|
|
39
|
+
- Remove copyright or attribution notices from the Software's source.
|
|
40
|
+
|
|
41
|
+
You may freely use the Software's *output* (the HTML/content your users
|
|
42
|
+
create with it) with no restriction — this license covers the editor
|
|
43
|
+
itself, not the documents people write in it.
|
|
44
|
+
|
|
45
|
+
## 5. Ownership
|
|
46
|
+
|
|
47
|
+
The Software is licensed, not sold. All intellectual property rights in
|
|
48
|
+
the Software remain with its authors.
|
|
49
|
+
|
|
50
|
+
## 6. Updates and support
|
|
51
|
+
|
|
52
|
+
Purchasing a license does not, by itself, obligate a specific duration or
|
|
53
|
+
schedule of free updates or support; any update/support terms in effect
|
|
54
|
+
at the time of purchase (if stated separately, e.g. on the purchase page)
|
|
55
|
+
control.
|
|
56
|
+
|
|
57
|
+
## 7. Warranty disclaimer
|
|
58
|
+
|
|
59
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
60
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
|
|
61
|
+
FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
|
|
62
|
+
|
|
63
|
+
## 8. Limitation of liability
|
|
64
|
+
|
|
65
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
|
|
66
|
+
LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR ITS
|
|
67
|
+
USE.
|
|
68
|
+
|
|
69
|
+
## 9. Termination
|
|
70
|
+
|
|
71
|
+
This license terminates automatically if you breach Section 4. A refunded
|
|
72
|
+
or charged-back purchase revokes the associated license key.
|
|
73
|
+
|
|
74
|
+
## 10. Refunds
|
|
75
|
+
|
|
76
|
+
Refund requests are handled on a reasonable, case-by-case basis after
|
|
77
|
+
purchase; a refunded transaction automatically revokes the license key
|
|
78
|
+
issued for it.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
Third-party components bundled inside `@kodaeditor/core` are used under
|
|
83
|
+
their own licenses — see `packages/core/THIRD-PARTY-LICENSES.txt`.
|
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# KodaEditor
|
|
2
|
+
|
|
3
|
+
A WYSIWYG rich-text editor for web applications, shipped as a web component.
|
|
4
|
+
|
|
5
|
+
**Not a code editor.** This is the box your users write a contract, a report or
|
|
6
|
+
an article in. If you need somewhere to write code, you want CodeMirror or Monaco.
|
|
7
|
+
|
|
8
|
+
## What makes it different
|
|
9
|
+
|
|
10
|
+
Paste a table from Microsoft Word and it stays a table. Paste a range from Excel
|
|
11
|
+
and it arrives as a real table, not a picture. Paste a page from Google Docs and
|
|
12
|
+
the formatting survives.
|
|
13
|
+
|
|
14
|
+
That sounds like the baseline every editor claims. It is not: most editors accept
|
|
15
|
+
Word content and quietly flatten it into unstyled paragraphs, and the merged
|
|
16
|
+
cells, column widths, numbered lists and inline colours are gone by the time your
|
|
17
|
+
user notices. Each item below is here because it used to break and was fixed:
|
|
18
|
+
|
|
19
|
+
- numbered and bulleted lists, including nesting levels and lists inside table cells
|
|
20
|
+
- tables with merged cells, column widths and row heights
|
|
21
|
+
- text colour, highlight, bold, italic, underline, strikethrough
|
|
22
|
+
- paragraph alignment, including numbers aligned inside table cells
|
|
23
|
+
- runs of spaces used for layout, which most editors collapse into one
|
|
24
|
+
- images, which most editors drop entirely on a Word paste
|
|
25
|
+
|
|
26
|
+
Import is supported directly too: `.docx` (including text inside shapes),
|
|
27
|
+
`.xlsx`, `.csv`, PDF, HTML, Markdown and plain text.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm i @kodaeditor/core
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<script src="/koda-editor.js"></script>
|
|
37
|
+
|
|
38
|
+
<koda-editor license="YOUR-LICENSE-KEY"></koda-editor>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Framework wrappers are separate packages: [`@kodaeditor/react`](https://www.npmjs.com/package/@kodaeditor/react),
|
|
42
|
+
[`@kodaeditor/vue3`](https://www.npmjs.com/package/@kodaeditor/vue3),
|
|
43
|
+
[`@kodaeditor/vue2`](https://www.npmjs.com/package/@kodaeditor/vue2),
|
|
44
|
+
[`@kodaeditor/angular`](https://www.npmjs.com/package/@kodaeditor/angular).
|
|
45
|
+
|
|
46
|
+
## Self-hosted, and we mean it
|
|
47
|
+
|
|
48
|
+
Once installed, the editor makes **no runtime calls to any external CDN**. The
|
|
49
|
+
only outbound request is a lightweight licence check, and you can point that at
|
|
50
|
+
your own endpoint or switch it off entirely with an offline licence file that is
|
|
51
|
+
verified on your own machine.
|
|
52
|
+
|
|
53
|
+
No content ever leaves your infrastructure. No account, no tenant, no dashboard
|
|
54
|
+
of ours in the middle.
|
|
55
|
+
|
|
56
|
+
## Trying it without a licence
|
|
57
|
+
|
|
58
|
+
Install it and everything works from the first minute. Nothing is switched off,
|
|
59
|
+
nothing is time-limited, there is no signup, and no feature is held back. The
|
|
60
|
+
Word paste is the part worth testing, so we would rather you tested it properly.
|
|
61
|
+
|
|
62
|
+
Two things mark an unlicensed installation, and neither takes anything away:
|
|
63
|
+
|
|
64
|
+
1. a watermark across the document and a banner above the editor;
|
|
65
|
+
2. one line appended to everything you export - PDF, Word, HTML, Markdown, plain
|
|
66
|
+
text, CSV - saying the file was created in trial mode.
|
|
67
|
+
|
|
68
|
+
Files still open and read normally. There is no limit on size, on how many
|
|
69
|
+
documents you produce, or on which features you use.
|
|
70
|
+
|
|
71
|
+
We say this here rather than let you find it in a document you already sent
|
|
72
|
+
someone.
|
|
73
|
+
|
|
74
|
+
An installation that has validated successfully before is never marked because of
|
|
75
|
+
us: if our validation service is unreachable, it keeps exporting clean files.
|
|
76
|
+
|
|
77
|
+
## Licence
|
|
78
|
+
|
|
79
|
+
Commercial, one-time payment, **$399 per production domain**. No subscription, no
|
|
80
|
+
renewal, no per-seat or per-document billing. A second domain is a second licence.
|
|
81
|
+
|
|
82
|
+
Offline licences are available on request: a signed file the editor verifies on
|
|
83
|
+
your own machine, with no request to us, ever. Your installation then depends on
|
|
84
|
+
nothing of ours.
|
|
85
|
+
|
|
86
|
+
Full terms: [kodaeditor.com/license](https://kodaeditor.com/license)
|
|
87
|
+
|
|
88
|
+
## Links
|
|
89
|
+
|
|
90
|
+
- Live demo, no signup: [kodaeditor.com/demo](https://kodaeditor.com/demo)
|
|
91
|
+
- Documentation: [kodaeditor.com/docs](https://kodaeditor.com/docs)
|
|
92
|
+
- Setup planner for strict CSP, proxies and air-gapped networks: [kodaeditor.com/setup](https://kodaeditor.com/setup)
|
|
93
|
+
- Buy: [kodaeditor.com/buy](https://kodaeditor.com/buy)
|
|
94
|
+
- Questions before buying are cheaper than refunds after: support@kodaeditor.com
|