The Contract Editor component is a React component that renders the entire Editor. The component integrates the functionalities of the E-signing, Approvals and Audit Trial components, providing a complete experience throughout the Contract workflow. This component provides the ability to create new contracts, open existing contracts, send them for signing, sign, approve, and see the Audit Trial.

Preview

Editor

Usage

First, install Sendforsign components. After that:

Props

PropTypeDefaultDescription
apiKeystringUse only for testing purposes. API key for your platform.
clientKeystringUse only for testing purposes. Client key for the account that is using the infrastructure.
tokenstringClient token refers to the client that is using the infrastructure. Learn more about client tokens here.
userKeystringUser key for the user who is creating a contract.
contractKeystringUnique contract key of the contract that needs to rendered. If not specified, the component will allow you to create a new contract from its interface.
pdfbooleantrueIf true, users can upload PDFs via this component.
сanReDraftbooleanfalseIf true, users can recreate existing contracts from scratch. Read this topic to learn more.
showTimelinebooleantrueIf false, the Timeline block will be hidden.
showActionsBarbooleantrueIf false, tha Actions block will be hidden.
onStepChangefunction(data: {currentStep:string})Called when component changes states and returns currentStep: 'TypeChooseStep' when the component is in the Type Choose state, currentStep: 'QnAStep' when the component is in the QnA step, and currentStep: 'ContractEditorStep' when the component is in the Editor state.
onDocumentSavefunction(data: {documentSaved:boolean})Called when the contract body is being edited, this function returns documentSaved: false if the body is not saved and documentSaved: true if the body is saved.

Additional functionality of the Contract Editor component

These components are integrated into the Contract Editor component. They can be switched on and off in your Sendforsign account.

Audit trail

Keep track of what’s happening with your documents.

Audit trail

E-signing

E-sign any document right in your browser, including Word documents and PDFs.

E-signing

Approval

Approve any document right in your browser, including Word documents and PDFs.

Approval