Placeholder

Placeholder text when editor is empty.

Try this feature →

Import

typescript
import { placeholderPlugin } from 'halka/plugins/placeholder';

Usage

  • Pass placeholder text as a factory argument
  • Requires halka-editor class on root (added automatically by HalkaEditor)

Example

typescript
placeholderPlugin('Start writing…')

Notes

Requires halka-editor class on root (added automatically).

MIT · Halka Editor