@lithiamotors/lpp-rich-text-editor

1.0.1 • 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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    248 kB

    Total Files

    6

    Last publish

    Collaborators

    • raminderkaur
    • audreyzheng
    • vijays-lithia
    • andybarnes
    • michaelnario
    • daylonblakely1
    • shashibala
    • ajaygb07
    • michellenygrenlithia
    • jamesstrawn
    • milesgreen
    • scott_faulkner
    • sean_goiburn_lithia
    • caitiesanderson
    • vivianhernandez
    • scottgilmourlithia
    • danielnicolas2025
    • ajaygblithia