@lithiamotors/lpp-rich-text-editor
v1.0.1
Published
> TODO: description
Downloads
33
Maintainers
Keywords
Readme
@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
todist
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