Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzitech/jquery.totextarea.js
Changes a div to act like a textarea to allow auto resizing and editing options
https://github.com/uzitech/jquery.totextarea.js
Last synced: 19 days ago
JSON representation
Changes a div to act like a textarea to allow auto resizing and editing options
- Host: GitHub
- URL: https://github.com/uzitech/jquery.totextarea.js
- Owner: UziTech
- License: mit
- Created: 2014-12-30T20:16:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T20:05:58.000Z (over 6 years ago)
- Last Synced: 2024-10-15T12:19:01.967Z (about 1 month ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 16
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jquery.toTextarea.js
====================Makes a div act like a textarea to allow auto resizing and formatting options.
Also allows drag and drop images from desktop.
Demo
====http://jsfiddle.net/UziTech/4msdgjox/
Usage
=====```html
```
```javascript
$(".textarea").toTextarea({
allowHTML: false,//allow HTML formatting with CTRL+b, CTRL+i, etc.
allowImg: false,//allow drag and drop images
singleLine: false,//make a single line so it will only expand horizontally
pastePlainText: true,//paste text without styling as source
placeholder: false//a placeholder when no text is entered. This can also be set by a placeholder="..." or data-placeholder="..." attribute
});
```