@@ -61,18 +61,24 @@ render(<ContractEditorRenderer />, document.getElementById('root'));
61
61
62
62
#### Values
63
63
64
- - ` value` [OPTIONAL]: An ` object ` which is the initial contents of the editor.
64
+ - ` value` [OPTIONAL]: An ` array ` which is the initial contents of the editor.
65
65
- ` lockText` [OPTIONAL]: A ` boolean` to lock all non variable text.
66
66
- ` readOnly` [OPTIONAL]: A ` boolean` to lock all text and remove the formatting toolbar.
67
67
- ` activeButton` [OPTIONAL]: Optional ` object` to change formatting button active state color
68
68
- ` { background: ' #FFF' , symbol: ' #000' }`
69
69
70
70
#### Functionality
71
71
72
- - ` onChange` [OPTIONAL]: A callback ` function ` called when the contents of the editor change.
73
- - `loadTemplateObject` [OPTIONAL]: A callback `function ` to load a template.
74
- - `onClauseUpdated` [OPTIONAL]: A callback `function ` called when text inside of a clause is changed.
75
- - `pasteToContract` [OPTIONAL]: A callback `function ` to load a clause template via copy/paste.
72
+ - ` onChange` [OPTIONAL]: A callback ` function ` called when the contents of the editor change. Argument:
73
+ - `value`: The Slate nodes `array` representing all the rich text
74
+ - `loadTemplateObject` [OPTIONAL]: A callback `function ` to load a template. Argument:
75
+ - `uri`: URI `string` source for loading the template
76
+ - `onClauseUpdated` [OPTIONAL]: A callback `function ` called when text inside of a clause is changed. Arguments:
77
+ - `clause`: The Slate node `object` representation of the clause
78
+ - `justAdded`: A `boolean` indicating if this was just added (likely via a paste action )
79
+ - `pasteToContract` [OPTIONAL]: A callback `function` to load a clause template via copy/paste. Arguments:
80
+ - `clauseid`: Data `string` from the clause in Slate to indicate a `uuid`
81
+ - `src`: URI `string` source for loading the template
76
82
77
83
### Available Functionality
78
84
0 commit comments