1.2.0 • Published 5 months ago
clasor-remote-editor v1.2.0
Clasor Remote Editor User Guide
To install the package use the following command:
npm i clasor-remote-editor
Usage
One simple example:
import React, { useRef } from "react";
import RemoteEditor from "clasor-remote-editor";
const wordEditorRef = useRef<IRemoteEditorRef>(null);
<RemoteEditor
url="the url of clasor editor"
editorMode={editorMode} // select editor mode
ref={wordEditorRef} // pass a ref to editor
loadData={data} // the data you want to load on init
onGetData={() => {
// fires when editor data is ready to read
}}
/>