@fibery/custom-app-text-editor 1.3.6 → 1.3.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 CHANGED
@@ -6,7 +6,7 @@ Fibery's rich text editor as a single React component, connected to the Fibery w
6
6
  ## Usage
7
7
 
8
8
  ```tsx
9
- import {TextEditor, type DocumentContentJson} from "@fibery/custom-app-text-editor";
9
+ import {TextEditor} from "@fibery/custom-app-text-editor";
10
10
  import "@fibery/custom-app-text-editor/style.css";
11
11
 
12
12
  <TextEditor defaultValue={doc} placeholder="Start typing…" onChange={(doc) => save(doc)} />;
@@ -19,7 +19,7 @@ import "@fibery/custom-app-text-editor/style.css";
19
19
  | `defaultValue` | `DocumentContentJson \| string` | Initial content as Fibery document JSON (`{doc, comments}`) or its string. Uncontrolled: read once on mount. |
20
20
  | `readOnly` | `boolean` | Render the document without editing. Default `false`. |
21
21
  | `placeholder` | `string` | Placeholder shown while the document is empty. |
22
- | `onChange` | `(doc: DocumentContentJson) => void` | Called on initial load and on every edit with the current document JSON. |
22
+ | `onChange` | `(doc: DocumentContentJson) => void` | Called on edits with the current document JSON; the initial load is excluded. |
23
23
 
24
24
  ## Notes
25
25
 
@@ -30,4 +30,4 @@ import "@fibery/custom-app-text-editor/style.css";
30
30
  - "Connected" means connected to the workspace for entity/mention data; the document itself
31
31
  is not live-synced or collaborative.
32
32
  - Chips the current user has no access to render as a locked "No access" chip.
33
- - File uploads are not supported.
33
+ - File uploads use the connected workspace through the Fibery client.