Sha256: d95a348c20311aa7d5be96bd4081627b3b4d5c57acba876aac1377c99eb0695e

Contents?: true

Size: 850 Bytes

Versions: 1065

Compression:

Stored size: 850 Bytes

Contents

import React, { useState } from 'react'
import { RichTextEditor, Select } from '../../'
import { changelog, release } from './templates.js'

const RichTextEditorTemplates = (props) => {
  const [editorContent, setEditorContent] = useState('')

  const handleChange = (event) => {
    setEditorContent(event.target.value)
  }

  const options = [
    {
      value: release,
      text: 'Playbook Release',
    },
    {
      value: changelog,
      text: 'Changelog',
    },
  ]

  return (
    <div>
      <Select
          blankSelection="Select a template..."
          label="Template"
          onChange={handleChange}
          options={options}
          {...props}
      />
      <RichTextEditor
          id="template"
          template={editorContent}
          {...props}
      />
    </div>
  )
}

export default RichTextEditorTemplates

Version data entries

1,065 entries across 1,065 versions & 2 rubygems

Version Path
playbook_ui_docs-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.33.1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx