@meenainwal/rich-text-editor 1.0.2 → 1.0.4
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 +20 -0
- package/package.json +9 -2
package/ReadME.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @meenainwal/rich-text-editor 🚀
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@meenainwal/rich-text-editor)
|
|
4
|
+
[](https://www.npmjs.com/package/@meenainwal/rich-text-editor)
|
|
5
|
+
|
|
3
6
|
A premium, ultra-lightweight, framework-agnostic rich text editor built entirely with Vanilla TypeScript. Featuring a sophisticated **Slate & Indigo** design system, it provides a flawless writing experience out-of-the-box.
|
|
4
7
|
|
|
5
8
|

|
|
@@ -46,6 +49,23 @@ const editor = new CoreEditor(container, {
|
|
|
46
49
|
const htmlOutput = editor.getHTML();
|
|
47
50
|
```
|
|
48
51
|
|
|
52
|
+
### Via CDN (Direct Download, No NPM Required)
|
|
53
|
+
|
|
54
|
+
You can instantly drop the editor into any standard HTML page without installing tools or bundlers. Simply use standard CDN links (like `unpkg.com` or `jsdelivr.net`):
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<!-- Load the beautifully styled CSS -->
|
|
58
|
+
<link rel="stylesheet" href="https://unpkg.com/@meenainwal/rich-text-editor/dist/rich-text-editor.css">
|
|
59
|
+
|
|
60
|
+
<!-- Load the Logic Script as an ES Module -->
|
|
61
|
+
<script type="module">
|
|
62
|
+
import { CoreEditor } from 'https://unpkg.com/@meenainwal/rich-text-editor/dist/test-editor.mjs';
|
|
63
|
+
|
|
64
|
+
const container = document.getElementById('editor');
|
|
65
|
+
const editor = new CoreEditor(container);
|
|
66
|
+
</script>
|
|
67
|
+
```
|
|
68
|
+
|
|
49
69
|
### In React
|
|
50
70
|
|
|
51
71
|
```tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meenainwal/rich-text-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A premium, lightweight, and framework-agnostic rich text editor with a sophisticated Slate & Indigo design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -41,5 +41,12 @@
|
|
|
41
41
|
],
|
|
42
42
|
"author": "Anuj Nainwal",
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/anujnainwal/rich-text-editor.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/anujnainwal/rich-text-editor/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/anujnainwal/rich-text-editor#readme"
|
|
45
52
|
}
|