views:

10

answers:

0

Right now I have a page with 2 tabs. When the EDIT tab is clicked a YUI rich text editor will load up and create the toolbar and textarea to edit. I then will do a RESTful GET call to retrieve the data and then set it to the textarea value. This causes the Undo button to be clickable since the value was originally empty and then text was copied to the textarea. So when I click Undo, it'll erase the text and give me blank.

My question is, how do I make it so that the button doesn't activate onLoad but rather stays disabled until after the second value insert so that it doesn't seem like the text has been edited? thanks