Skip to content

Changes a div to act like a textarea to allow auto resizing and editing options

License

Notifications You must be signed in to change notification settings

UziTech/jquery.toTextarea.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

<div class="textarea"></div>
$(".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
});

About

Changes a div to act like a textarea to allow auto resizing and editing options

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published