1.0.0 • Published 2 years ago

@lithiamotors/lpp-rich-text-editor v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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