0.14.0 • Published 8 months ago
@planview/pv-editor v0.14.0
@planview/pv-editor
React implementation of Planview Design System Rich Text Editor
following the specification (Documentation not yet published).
This package enables rich text editing in a unified way for Planview products. It is a wrapper around TipTap and ProseMirror.
Setup
You can install @planview/pv-editor
in multiple ways:
NPM
npm install @planview/pv-editor --save
Yarn
yarn add @planview/pv-editor
Usage
Due to the underlying technology being used, the Editor only runs in uncontrolled mode. To update the content after it has mounted, you can use the EditorApi exposed via the ref.
import { Editor } from '@planview/pv-editor'
const MyView = () => {
const [currentValue, setCurrentValue] = React.useState()
return (
<Editor
defaultValue="<p>Hello world!</p>"
onReady={(editor) => {
setCurrentValue(editor.getValue())
}}
onChange={(editor) => {
setCurrentValue(editor.getValue())
}}
/>
)
}
0.14.0
8 months ago
0.13.0
8 months ago
0.12.0
8 months ago
0.10.0
9 months ago
0.11.0
8 months ago
0.9.1
9 months ago
0.9.0
9 months ago
0.8.1
10 months ago
0.8.0
10 months ago
0.7.0
11 months ago
0.6.0
11 months ago
0.5.0
11 months ago
0.4.0
11 months ago
0.3.1
12 months ago
0.3.0
12 months ago
0.2.0
12 months ago
0.1.0
1 year ago