Form fields·loomora/TextEditor
⚙Related configs↗

TextEditor

A rich text input that wraps TinyMCE React, with value/change callbacks and editor initialization options.

Interactive live playground

Tweak props, change states, and see the live component respond in real time.

Live

How to call

Import directly from the Loomora package root. For projects without Tailwind CSS, ensure loomora/dist/index.css is imported once in your root layout.

import { TextEditor } from 'loomora'

<TextEditor label="Article body" properties={{
  value, onChange: setValue, height: 320, toolbar: 'bold italic | bullist numlist',
}} />

API reference

Important public props and how they affect rendering.

6 props
PropTypeDefaultDescription
properties.value / onChangestring / (content: string) => void—Controlled HTML content.
properties.initialValuestring—Initial content for uncontrolled usage.
properties.heightnumber | string420Editor height.
properties.plugins / toolbarTinyMCE optionsconfigured defaultsEditor plugin and toolbar setup.
properties.disabled / requiredbooleanfalseEditor interaction and required states.
onBlur(content: string) => void—Receives editor content on blur.