@vize/richtext-editor

0.1.6 • Public • Published

@vize/richtext-editor

A richtext editor React component using in project vize

Preview

Install

npm install --save @vize/richtext-editor @udecode/slate-plugins slate slate-history slate-hyperscript slate-react

Usage

import { Editor, getRawValue, getHTML } from '@vize/richtext-editor';

function App() {
  return (
    <>
      <button onClick={() => console.log(getHTML())}>print html</button>
      <button onClick={() => console.log(getRawValue())}>print raw value</button>
      <Editor wrapperClassName="my-editor" initValue="<h1>hello</h1>" />
    </>
  );
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.6
    2
    • latest

Version History

Package Sidebar

Install

npm i @vize/richtext-editor

Weekly Downloads

9

Version

0.1.6

License

ISC

Unpacked Size

73.5 kB

Total Files

54

Last publish

Collaborators

  • huqingyang