cvnert-editor 0.1.0 → 0.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 CHANGED
@@ -11,12 +11,12 @@ npm install cvnert-editor
11
11
  ## Usage
12
12
 
13
13
  ```tsx
14
- import { OmniboxEditor } from "cvnert-editor"
14
+ import { CvnertEditor } from "cvnert-editor"
15
15
  import "cvnert-editor/style.css"
16
16
 
17
17
  export function App() {
18
18
  return (
19
- <OmniboxEditor
19
+ <CvnertEditor
20
20
  placeholder="Start writing..."
21
21
  onUpdate={({ json, html }) => {
22
22
  console.log(json, html)
@@ -29,7 +29,7 @@ export function App() {
29
29
  ## Image Upload
30
30
 
31
31
  ```tsx
32
- import { OmniboxEditor, type UploadFunction } from "cvnert-editor"
32
+ import { CvnertEditor, type UploadFunction } from "cvnert-editor"
33
33
  import "cvnert-editor/style.css"
34
34
 
35
35
  const uploadImage: UploadFunction = async (file, onProgress) => {
@@ -38,7 +38,7 @@ const uploadImage: UploadFunction = async (file, onProgress) => {
38
38
  }
39
39
 
40
40
  export function App() {
41
- return <OmniboxEditor imageUpload={uploadImage} />
41
+ return <CvnertEditor imageUpload={uploadImage} />
42
42
  }
43
43
  ```
44
44