Paste
Sanitizes pasted HTML automatically.
Import
typescript
import { pastePlugin } from 'halka/plugins/paste';Usage
- No commands — intercepts paste events automatically
- Paste from Word/Google Docs — disallowed tags are stripped
- Plain text paste creates one paragraph per line
Notes
No commands — intercepts paste events. Plain text is wrapped in paragraphs.