Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.