🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@planview/pv-editor

Package Overview
Dependencies
Maintainers
7
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planview/pv-editor

Implementation of Planview Design system rich text editor

1.10.1
latest
Source
npm
Version published
Maintainers
7
Created
Source

@planview/pv-editor

React implementation of Planview Design System Rich Text Editor following the specification.

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())
            }}
        />
    )
}

Keywords

planview

FAQs

Package last updated on 25 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts