0.6.5 • Published 6 months ago

@rhc-shared-components/rich-text-editor v0.6.5

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

@rhc-shared-components/rich-text-editor

WYSWYG Editor for Red Hat Certified Apps

NPM JavaScript Style Guide

Install

yarn add @rhc-shared-components/rich-text-editor

Usage

import React from 'react';
import { RichTextEditorFormComponent, RichTextEditor } from '@rhc-shared-components/rich-text-editor';
import { Formik } from 'formik';
import { Title } from "@patternfly/react-core";

const App = () => {
  const FieldName = 'richtext';
  return (
    <div>
      <Title headingLevel={'h1'}>RichTextEditor</Title>
      <RichTextEditor value={"<h3>hello world from normal RTE</h3>"}/>
      <Title headingLevel={'h1'}>RichTextEditor with formik</Title>
      <Formik
        initialValues={{
          [FieldName]: '<h1>Hello world</h1>'
        }}
        enableReinitialize={true}
        onSubmit={()=>{}}>
        <RichTextEditorFormComponent
          name={FieldName}
          label={'Rich text form label'}
          helperText={'This is a test description'}
          isRequired={true}
        />
      </Formik>
    </div>);
}

License

MIT © gautamkrishnar

0.6.5

6 months ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.5.0

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago

0.2.2

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago