Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
});
```