Hello all,
While working with HTML Editor, we wanted to give a functionality to user where He/She can selected a link inside the HTML Editor and he can Unlink it.
To do this, we have this block of code.:
var current = window.getselection();
if (current.length > 0 && current.nodeName == 'A') {
$current.replaceWith($current.contents());
}
else if ($(current).length > 0 && current.nodeName == 'A') {
$(current).replaceWith($(current).contents());
}
0 Comment(s)