GitXplorerGitXplorer
U

jquery.toTextarea.js

public
16 stars
1 forks
2 issues

Commits

List of commits on branch master.
Unverified
ebdbd61f6bfe30f60ac73b30eea2bc60f7aff0ed

string check on insert text

UUziTech committed 6 years ago
Unverified
e5ffb15b32e81ab51e64cd077cc0e35b0c29e4f1

block ctrl+k when not allowing html

UUziTech committed 8 years ago
Unverified
9ec5075f4b5ff01a91ed90dd2ff6d3d4fea2d07a

set cursor: text on placeholder

UUziTech committed 8 years ago
Unverified
61e3a2f0da06923a8fab1003eba62a471b163a03

change placeholder to :after content

UUziTech committed 8 years ago
Unverified
24fcd7703678a7562255ee9a271b2e421f319347

stop underline and use getData("text")

UUziTech committed 8 years ago
Unverified
9b6111bcfd96ee392d3d986a87b73c8baa4e60b3

add placeholder option description

UUziTech committed 9 years ago

README

The README file for this repository.

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