Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vineetkumarkushwaha/contenteditabletextarea
Jquery plugin for textarea which looks like twitter's twit text area
https://github.com/vineetkumarkushwaha/contenteditabletextarea
Last synced: about 2 months ago
JSON representation
Jquery plugin for textarea which looks like twitter's twit text area
- Host: GitHub
- URL: https://github.com/vineetkumarkushwaha/contenteditabletextarea
- Owner: VineetKumarKushwaha
- Created: 2015-07-28T09:35:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T15:55:14.000Z (about 9 years ago)
- Last Synced: 2023-03-03T03:57:30.874Z (almost 2 years ago)
- Language: JavaScript
- Size: 207 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Content editable Textarea
Jquery plugin for textarea which looks like twitter's twit text area.
#How to use
Add this script into your index.html
``````
```
$(".editable").contentEditable({
"placeholder" : "Don´t be shy, give me some letters here.",
"maxLenth": 50,
"cls": "hello",
"classIfMaxReached": "maxReached",
"onBlur" : function(element){
var edited_content = element.content;
console.log(edited_content);
}
});
```So here you can gie placeholder ,maxlength etc.
cls stand for class so that you can do styling also.Inside 'onBlur' function you can get value of current texarea.