Sha256: 6a3f65d91679556d3180f6efaf1d1eb394fa99f979097273420cb197046a8910

Contents?: true

Size: 803 Bytes

Versions: 10

Compression:

Stored size: 803 Bytes

Contents

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

const RichTextEditorTemplates = () => {
  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}
      />
      <RichTextEditor
          id="template"
          template={editorContent}
      />
    </div>
  )
}

export default RichTextEditorTemplates

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
playbook_ui-7.11.1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.11.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.8.1 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-7.8.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx