Skip to content

DocumentEditor

reference
1 min readUpdated

Kind: Component

Source: atloria-monorepo/apps/web/src/components/Editor/DocumentEditor.tsx

Props

NameTypeRequiredDefault
contentstring-
onChangeFunction-
editableboolean-true
originalContentstring--
previewModeboolean-false
selectedAudiencesstring[]-[]
documentIdstring--
projectIdstring--

Diagram

mermaid
graph TD
    component_DocumentEditor_702dfdfa["DocumentEditor"]
    class component_DocumentEditor_702dfdfa rootComponent

Relationships

  • RENDERS → AudiencePreviewPanel
  • RENDERS → MDXEditor
  • RENDERS → KitchenSinkToolbar
  • RENDERS → Separator
  • RENDERS → InsertBlockElement
  • RENDERS → InsertAudienceButton
  • USES_HOOK → useRef
  • USES_HOOK → useImageUpload
  • USES_HOOK → useSession
  • USES_HOOK → useAudiences
  • USES_HOOK → useAPIClient
  • USES_HOOK → useMemo
  • USES_HOOK → useCallback
  • USES_HOOK → useEffect

Was this page helpful?

Download as PDF