_insertADTLink() {
    let selectionData = store.state.selectionData;

    // check if selection resides already inside adtLink
    const adtLink = document.createElement('span');
    adtLink.classList.add('adt-link');
    adtLink.innerText = `[${
      store.state.selectionData ? store.state.selectionData.text : 'adt://...'
    }](Name of link)`;

    selectionData.range.deleteContents();
    selectionData.sel.removeAllRanges();
    selectionData.range.insertNode(adtLink);
    selectionData.range.setStartBefore(adtLink);
    selectionData.range.setEndAfter(adtLink);
  }
/**
   * Inserts ADT Link section at the current position
   * @private
   */
Inserts ADT Link section at the current position
@private
Inserts ADT Link section at the current position @private
_insertADTLink() {
    let selectionData = store.state.selectionData;
    const adtLink = document.createElement('span');
    adtLink.classList.add('adt-link');
    adtLink.innerText = `[${
      store.state.selectionData ? store.state.selectionData.text : 'adt://...'
    }](Name of link)`;
    selectionData.range.deleteContents();
    selectionData.sel.removeAllRanges();
    selectionData.range.insertNode(adtLink);
    selectionData.range.setStartBefore(adtLink);
    selectionData.range.setEndAfter(adtLink);
  }
_insertADTLink ( ) { let selectionData = store . state . selectionData ; const adtLink = document . createElement ( 'span' ) ; adtLink . classList . add ( 'adt-link' ) ; adtLink . innerText = ` ${ store . state . selectionData ? store . state . selectionData . text : 'adt://...' } ` ; selectionData . range . deleteContents ( ) ; selectionData . sel . removeAllRanges ( ) ; selectionData . range . insertNode ( adtLink ) ; selectionData . range . setStartBefore ( adtLink ) ; selectionData . range . setEndAfter ( adtLink ) ; }
Inserts ADT Link section at the current position
 @private
Inserts ADT Link section at the current position @private
// check if selection resides already inside adtLink