_createClipBoardActions($codingElement) {
    let actions = [];

    if ($codingElement) {
      const copyCoding = () => {
        store.commit('setClipboardData', { content: $codingElement[0], type: 'code' });
      };
      actions.push(
        createItem('Cut', 'cut', () => {
          copyCoding();
          $codingElement.remove();
        })
      );
      actions.push(
        createItem('Copy', 'copy', () => {
          copyCoding();
        })
      );
    } else {
      const copyContent = (extract = false) => () => {
        const selectionData = store.state.selectionData;
        const range = selectionData.range;
        const content = range.cloneContents();

        if (extract) {
          range.deleteContents();
        }

        store.commit('setClipboardData', { content, type: 'content' });
      };

      if (store.getters.hasSelection(true)) {
        actions.push(createItem('Cut', 'cut', copyContent(true)));
        actions.push(createItem('Copy', 'copy', copyContent()));
      }
      if (store.getters.hasClipboardData) {
        actions.push(
          createItem('Paste', 'paste', () => {
            eventProxy.$trigger('paste');
          })
        );
      }
    }

    if (actions.length > 0) {
      actions.push(separator);
    }

    return actions;
  }
/**
   * Creates the context actions for clipboard
   * interaction
   * @private
   */
Creates the context actions for clipboard
interaction
@private
Creates the context actions for clipboard interaction @private
_createClipBoardActions($codingElement) {
    let actions = [];
    if ($codingElement) {
      const copyCoding = () => {
        store.commit('setClipboardData', { content: $codingElement[0], type: 'code' });
      };
      actions.push(
        createItem('Cut', 'cut', () => {
          copyCoding();
          $codingElement.remove();
        })
      );
      actions.push(
        createItem('Copy', 'copy', () => {
          copyCoding();
        })
      );
    } else {
      const copyContent = (extract = false) => () => {
        const selectionData = store.state.selectionData;
        const range = selectionData.range;
        const content = range.cloneContents();
        if (extract) {
          range.deleteContents();
        }
        store.commit('setClipboardData', { content, type: 'content' });
      };
      if (store.getters.hasSelection(true)) {
        actions.push(createItem('Cut', 'cut', copyContent(true)));
        actions.push(createItem('Copy', 'copy', copyContent()));
      }
      if (store.getters.hasClipboardData) {
        actions.push(
          createItem('Paste', 'paste', () => {
            eventProxy.$trigger('paste');
          })
        );
      }
    }
    if (actions.length > 0) {
      actions.push(separator);
    }
    return actions;
  }
_createClipBoardActions ( $codingElement ) { let actions = [ ] ; if ( $codingElement ) { const copyCoding = ( ) => { store . commit ( 'setClipboardData' , { content : $codingElement [ 0 ] , type : 'code' } ) ; } ; actions . push ( createItem ( 'Cut' , 'cut' , ( ) => { copyCoding ( ) ; $codingElement . remove ( ) ; } ) ) ; actions . push ( createItem ( 'Copy' , 'copy' , ( ) => { copyCoding ( ) ; } ) ) ; } else { const copyContent = ( extract = false ) => ( ) => { const selectionData = store . state . selectionData ; const range = selectionData . range ; const content = range . cloneContents ( ) ; if ( extract ) { range . deleteContents ( ) ; } store . commit ( 'setClipboardData' , { content , type : 'content' } ) ; } ; if ( store . getters . hasSelection ( true ) ) { actions . push ( createItem ( 'Cut' , 'cut' , copyContent ( true ) ) ) ; actions . push ( createItem ( 'Copy' , 'copy' , copyContent ( ) ) ) ; } if ( store . getters . hasClipboardData ) { actions . push ( createItem ( 'Paste' , 'paste' , ( ) => { eventProxy . $trigger ( 'paste' ) ; } ) ) ; } } if ( actions . length > 0 ) { actions . push ( separator ) ; } return actions ; }
Creates the context actions for clipboard
 interaction
 @private
Creates the context actions for clipboard interaction @private