Placeholder
Placeholder text when editor is empty.
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).