I didnt understand one thing. How come the code that I had put in my question got removed. I had posted the below code in my earlier post and now its not there.
FIRST
Listen to the expand event of the panel and put the following code to reset the value;
expand: function ()
{
var htmlEditor = Ext.getCmp(nodeId + '_desc_html_editor');
htmlEditor.setReadOnly(false);
htmlEditor.setValue(desc_html);//desc_html contains the value fetched from the file
}
SECOND
Make the hyperlink read-only by using the following css and then if calling a javascript function use the "parent.";
<a href='javascript:void(0);' style='-webkit-user-modify: read-only; -moz-user-modify: read-only;' onclick='parent.functionName(\"parameter\")'>Click for Details</a>