Sha256: d0af1e5a9ea9d0168cb18c779275fd832e7964082c8ca08540761e04d91e43af

Contents?: true

Size: 476 Bytes

Versions: 915

Compression:

Stored size: 476 Bytes

Contents

import React, { useState } from 'react'
import { RichTextEditor } from '../../'

const RichTextEditorDefault = (props) => {
  const [value, setValue] = useState('Add your text here. You can format your text, add links, quotes, and bullets.'),
  handleOnChange = (html) => setValue(html)

  return (
    <div>
      <RichTextEditor
          onChange={handleOnChange}
          value={value}
          {...props}
      />
    </div>
  )
}

export default RichTextEditorDefault

Version data entries

915 entries across 915 versions & 2 rubygems

Version Path
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.19.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.18.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.17.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.16.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.15.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.14.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx