t.maheswari 0 Newbie Poster

Dear Friends,

I have one doubt in html text editor.
my editor have the table icon, when the user click that icon table is placed in editor.
How it done means..
First the convert all table tags to string(eg. str="<table id='table1'><tr><td></td></td></table>")
using pasteHtml Property we place the table in editor.

upto this all are working fine.

The Question is:
Assume the editor has more than one table.
If i click on one table and click the table icon, i can't get the table name which is selected.

So when i click the table icon i just want to retrieve the selected table name.

For this scenario , i am using
iframeid.document.selection.createRange()

But it's not working, it gives an error .

Please give your suggestion to solve this scenario..