TinyMce Editor problem

Posted by Venkatesh under ASP.NET on 11/30/2010 | Points: 10 | Views : 2186 | Status : [Member] | Replies : 1

I have one doubt about tinymce editor.We are using that editor.
when the textarea is blank if we press on html button it should displaying paragraph tag with  
After that when i enter any text in textarea it deletes that  ,But i dont want to delete this   How to do this.



Posted by: T.saravanan on: 11/30/2010 [Member] [MVP] Silver | Points: 25

Hi Venkatesh,

I don't know its working or not.But try this...

In your html button get the value of txtarea control to store one string object.
For example: string sText = "your html text";

If you enter any text in your textarea means just add that string

txtarea.Text = sText + "your Text ";
txtarea.Value = sText + "your Text ";

when you clear the text in your textarea means at the time clear the text in your string object.
i am not sure its working fine... but try this..


Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response