Hi,
Because lack of API documentation I need to ask you how to manage proper elements deletion.
I use method: FCK.InsertHtml("<div class='A'><a href='xxx'><img src='xxx' /></a></div>"); So it puts image with link and div in text. When user clicks on image in editor, IMG node is selected. Then he (user) push "Delete" key on his keyboard and IMG node is removed, but there are DIV and A left.
Is there a way to automaticly remove thes parents nodes? Any ideas how to do this?
Thanks.
Because lack of API documentation I need to ask you how to manage proper elements deletion.
I use method: FCK.InsertHtml("<div class='A'><a href='xxx'><img src='xxx' /></a></div>"); So it puts image with link and div in text. When user clicks on image in editor, IMG node is selected. Then he (user) push "Delete" key on his keyboard and IMG node is removed, but there are DIV and A left.
Is there a way to automaticly remove thes parents nodes? Any ideas how to do this?
Thanks.