nam-rich-text-editor 9.0.6 → 9.0.7
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 +3 -3
- package/dist/rich-text-editor.es.js +508 -490
- package/dist/rich-text-editor.umd.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A custom rich text editor similar to Word, built with JavaScript and TypeScript.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install rich-text-editor
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ npm install nam-rich-text-editor
|
|
|
13
13
|
### As a Class
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
|
-
import { RichTextEditor } from "
|
|
16
|
+
import { RichTextEditor } from "rich-text-editor";
|
|
17
17
|
|
|
18
18
|
const editor = new RichTextEditor();
|
|
19
19
|
const editorElement = editor.getElement();
|
|
@@ -30,7 +30,7 @@ editor.setHTML("<p>Hello <strong>world</strong>!</p>");
|
|
|
30
30
|
|
|
31
31
|
```jsx
|
|
32
32
|
import React from "react";
|
|
33
|
-
import { RichTextEditorComponent } from "
|
|
33
|
+
import { RichTextEditorComponent } from "rich-text-editor";
|
|
34
34
|
|
|
35
35
|
const MyEditor = () => {
|
|
36
36
|
const handleChange = (html) => {
|