TinyMce Editor problem

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

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.

Thanks




Responses

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

Up
0
Down
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 ";
(or)
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..




Thanks,
T.Saravanan

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

Login to post response