tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
43 lines (26 loc) β’ 1.33 kB
Markdown
## π¦ Text Power + Clipboard Magic! β¨
### π‘ What's New
#### βοΈ **TinyTextRangeEditor**
A powerful and flexible utility for manipulating text ranges inside `input` and `textarea` elements. Itβs designed for rich editing, precise control, and extensibility.
Features include:
* π― `insertText`, `wrapWithTag`, `insertSelfClosingTag`, `toggleTag`, `toggleCode` and more!
* π Chainable API support for clean syntax.
* β οΈ Built-in error throwing to prevent misuse.
* π§ Auto-spacing for inserted values (optional).
* π― Focus control and inline tag logic.
* π§© Attribute handling and fine-grained cursor/selection positioning.
#### π **TinyClipboard**
A clean and smart clipboard manager that supports:
* β
Modern `navigator.clipboard` API.
* π οΈ Fallback using `document.execCommand`.
* π Custom copy functions for both text and blobs.
### π§± Improvements
#### π§± **TinyHtml**
* βοΈ Added `listenForPaste`, `hasEventListener`, and `hasExactEventListener` methods to enhance DOM event logic.
### π Documentation
* π `TinyTextRangeEditor` and `TinyClipboard` added to the official documentation menu!
Enjoy the new editing powers and clipboard flexibility!
**Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.17.1...1.18.0