Sha256: dab231270f9c88e2336a52989ea8eeaa756346e67613da9587fdaa7c8f500814

Contents?: true

Size: 855 Bytes

Versions: 1007

Compression:

Stored size: 855 Bytes

Contents

import React, { useState } from 'react'
import { RichTextEditor, Select } from 'playbook-ui'
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,007 entries across 1,007 versions & 2 rubygems

Version Path
playbook_ui-14.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-14.0.0.pre.alpha.PLAY14113475 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-14.0.0.pre.alpha.PLAY14113475 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-14.0.0.pre.alpha.play1447alphatest3462 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-14.0.0.pre.alpha.play1447alphatest3462 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-14.1.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-14.1.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.PLAY14043436 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.PLAY14043436 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
playbook_ui_docs-13.34.1.pre.alpha.pbntr258paginationkitforreact3409 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx