editor: plugins/core - restore selection after editing/deleting link via a link tool box
[fnpeditor.git] / src / smartxml / core.js
index 9630a77..419b175 100644 (file)
@@ -106,7 +106,7 @@ var elementNodeTransformations = {
 
     detach: function() {
         var next;
-        if(this.parent() && this.isSurroundedByTextElements()) {
+        if(this.parent() && this.isSurroundedByTextNodes()) {
             next = this.next();
             this.prev().appendText(next.getText());
             next.detach();