All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.actions.cut.js Maven / Gradle / Ivy

import select from 'select';
import command from '../common/command';

/**
 * Cut action wrapper.
 * @param {String|HTMLElement} target
 * @return {String}
 */
const ClipboardActionCut = (target) => {
  const selectedText = select(target);
  command('cut');
  return selectedText;
};

export default ClipboardActionCut;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy