0.2.9 • Published 6 months ago

@raralabs/rara-rte v0.2.9

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

TODO

  • Color Text
  • Bold
  • Italic
  • Underline
  • Strikethrough
  • Quote
  • Heading (1,2...5)
  • Code
  • Checklist
  • Copy from html
  • Text Align
  • Mention
  • Ordered List
  • Unordered List
  • Nested List
  • Indent (Increase, Decrease)

How To Use

Demo Link: https://codesandbox.io/s/example-rara-rte-dumskc

  1. Install @raralabs/rara-rte

    npm i @raralabs/rara-rte

  2. Import component and style and use it in your code

    import {RaraEditor} from '@raralabs/rara-rte';
    
    import '@raralabs/rara-rte/dist/rara-rte.css'
    import { useState } from 'react';
    export default function App() {
      const [value,setValue]=useState(null)
      return (
        <div className="">
          <h1>Rara Rich Text Editor</h1>
          <RaraEditor
          value={value}
          onChange={(v)=>{
            setValue(v);
          }}
          />
        </div>
      );
    }

Props

NameDescriptionDefault
valuestring-
onChange((val: string) => void)-
readOnlybooleanfalse
onCheckboxChange((checked: boolean, value: string) => void)-
onMentionQuery((query: string) => Promise<MentionItemProps[]>)-
mentionItemRenderer((mentionOptionItem: MentionItemProps) => ReactNode)-
mentionOptionRenderer((mentionOptionItem: MentionItemProps) => ReactNode)-

License

RTE is MIT Licensed

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

6 months ago

0.2.8

1 year ago

0.2.5

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago