When pressing "Insert" without doing anything else, linkit is inserting an empty tag.

I.E
<a>My selected text</a>

Comments

anon’s picture

Same issue in the D6 verison

anon’s picture

Status: Active » Patch (to be ported)

Commited fix to 7.x-1.x

// Remove element if there is no href
if ($('#edit-link--2').val() == "") {
  if (e) {
    tinyMCEPopup.execCommand("mceBeginUndoLevel");
    ed.dom.remove(e, 1);
    tinyMCEPopup.execCommand("mceEndUndoLevel");
    tinyMCEPopup.close();
    return;
  }
  tinyMCEPopup.close();
  return;
}

This needs to be ported to D6.

anon’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
anon’s picture

Status: Patch (to be ported) » Fixed

Commited fix to 6.x.1-x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.