alexgorbatchev/jquery-textext — Issue #24: here's the code for a tiny "clear contents" plugin. Feedback?
Author: mreinstein
Created: 2012-02-19 16:39:26+00:00
State: open

I wrote a very simple plugin for adding a clear button (an "x" to the left of the arrow plugin) It's basically the same as the clear button in google docs; clicking it removes all tags and text from the textarea

js: http://pastebin.com/C7kJig1R
css: http://pastebin.com/dBQXBv8T

Anyone find this useful? I'd love feedback on the code; i basically just copied the arrow plugin and changed the p.onArrowClick function. I'm not sure if I'm following textext conventions in that code.