dist/hashedit.js
function() {

      var id, cssClass, href, target, title, link;

      // get selected link
      hashedit.currLink = hashedit.getLinkFromSelection();

      // populate link values
      if (hashedit.currLink !== null) {

        // get  attributes
        id = hashedit.currLink.getAttribute('id') || '';
        cssClass = hashedit.currLink.getAttribute('class') || '';
        href = hashedit.currLink.getAttribute('href') || '';
        target = hashedit.currLink.getAttribute('target') || '';
        title = hashedit.currLink.getAttribute('title') || '';

        // show the link dialog
        link = document.querySelector('#hashedit-link-settings-modal');
        link.setAttribute('visible', '');

        // sets start values
        document.getElementById('hashedit-link-id').value = id;
        document.getElementById('hashedit-link-cssclass').value =
          cssClass;
        document.getElementById('hashedit-link-href').value = href;
        document.getElementById('hashedit-link-target').value = target;
        document.getElementById('hashedit-link-title').value = title;

      }

    }
function() {

      var id, cssClass, href, target, title, link;

      // get selected link
      hashedit.currLink = hashedit.getLinkFromSelection();

      // populate link values
      if (hashedit.currLink !== null) {

        // get  attributes
        id = hashedit.currLink.getAttribute('id') || '';
        cssClass = hashedit.currLink.getAttribute('class') || '';
        href = hashedit.currLink.getAttribute('href') || '';
        target = hashedit.currLink.getAttribute('target') || '';
        title = hashedit.currLink.getAttribute('title') || '';

        // show the link dialog
        link = document.querySelector('#hashedit-link-settings-modal');
        link.setAttribute('visible', '');

        // sets start values
        document.getElementById('hashedit-link-id').value = id;
        document.getElementById('hashedit-link-cssclass').value =
          cssClass;
        document.getElementById('hashedit-link-href').value = href;
        document.getElementById('hashedit-link-target').value = target;
        document.getElementById('hashedit-link-title').value = title;

      }

    }
function ( ) { var id , cssClass , href , target , title , link ; // get selected link hashedit . currLink = hashedit . getLinkFromSelection ( ) ; // populate link values if ( hashedit . currLink !== null ) { // get  attributes id = hashedit . currLink . getAttribute ( 'id' ) || '' ; cssClass = hashedit . currLink . getAttribute ( 'class' ) || '' ; href = hashedit . currLink . getAttribute ( 'href' ) || '' ; target = hashedit . currLink . getAttribute ( 'target' ) || '' ; title = hashedit . currLink . getAttribute ( 'title' ) || '' ; // show the link dialog link = document . querySelector ( '#hashedit-link-settings-modal' ) ; link . setAttribute ( 'visible' , '' ) ; // sets start values document . getElementById ( 'hashedit-link-id' ) . value = id ; document . getElementById ( 'hashedit-link-cssclass' ) . value = cssClass ; document . getElementById ( 'hashedit-link-href' ) . value = href ; document . getElementById ( 'hashedit-link-target' ) . value = target ; document . getElementById ( 'hashedit-link-title' ) . value = title ; } }
Sets up the link dialog
Sets up the link dialog