src/selector_manager/view/ClassTagView.js
/**
   * End editing tag. If the class typed already exists the
   * old one will be restored otherwise will be changed
   * @private
   */
End editing tag. If the class typed already exists the
old one will be restored otherwise will be changed
@private
End editing tag . If the class typed already exists the old one will be restored otherwise will be changed @private
endEditTag() {
    const model = this.model;
    const inputEl = this.getInputEl();
    const label = inputEl.textContent;
    const em = this.em;
    const sm = em && em.get('SelectorManager');
    inputEl[inputProp] = false;
    em && em.setEditing(0);
    if (sm) {
      const name = sm.escapeName(label);
      if (sm.get(name)) {
        inputEl.innerText = model.get('label');
      } else {
        model.set({ name, label });
      }
    }
  }
endEditTag ( ) { const model = this . model ; const inputEl = this . getInputEl ( ) ; const label = inputEl . textContent ; const em = this . em ; const sm = em && em . get ( 'SelectorManager' ) ; inputEl [ inputProp ] = false ; em && em . setEditing ( 0 ) ; if ( sm ) { const name = sm . escapeName ( label ) ; if ( sm . get ( name ) ) { inputEl . innerText = model . get ( 'label' ) ; } else { model . set ( { name , label } ) ; } } }
End editing tag.
End editing tag .