@lithiamotors/lpp-rich-text-editor

1.0.0 • Public • Published

@lithiamotors/lpp-rich-text-editor


Implementation

import React, { useState } from 'react';
import LppRichTextEditor from '@lithiamotors/lpp-rich-text-editor';

const RichTextEditor = () => {
	const [value, setValue] = useState('');

	const onChange = (e) => setValue(e.html);
	return (
			<div style={{ width: '700px' }}>
				<LppRichTextEditor value={value} onChange={onChange}/>
				<div
					style={{
						display: 'flex',
						justifyContent: 'flex-end',
						marginTop: '8px',
					}}
				>
					<button onClick={() => alert(value)}>Submit</button>
				</div>
			</div>
	);
};

Version 1.0.0 (bug/cmorrissey-89856)

  • Changed file attribute from lib to dist

Version 1.0.0-alpha.1 (feature/cmorrissey-45951)

  • Added value prop to Editor (Forgot in base architectural work)
  • Added clear button to story

Version 1.0.0-alpha.0 (feature/cmorrissey-45951)

  • Base architectural work
  • Fixed text functions (bold, italic), no way to control from host app
  • Initial Storybook example working

Readme

Keywords

none

Package Sidebar

Install

npm i @lithiamotors/lpp-rich-text-editor

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

241 kB

Total Files

6

Last publish

Collaborators

  • charankumar16
  • varunchawla1
  • caitiesanderson
  • dhikshitkonda
  • karanrohra
  • haiderkeshwani
  • msambu
  • fayazshaik
  • aklithia
  • dhilberg-lithia
  • immadisetty
  • scottgilmourlithia
  • kalyanpasam
  • justin-lithia
  • ppulluri27
  • vijays-lithia
  • audreyzheng
  • michellenygrenlithia
  • sean_goiburn_lithia
  • scott_faulkner
  • milesgreen
  • jamesstrawn
  • gregoryrad
  • ajaygb07
  • andybarnes
  • michaelnario
  • daylonblakely1