Selects the current line and cuts it to the clipboard. Best used in a custom keyboard.
// Grab current line and send to the system clipboard var range = editor.getSelectedLineRange(); editor.setSelectedRange(range,range-1); var clip = editor.getSelectedText(); app.setClipboard(clip); // Remove current line from draft editor.setSelectedRange(range,range); var cut = editor.getSelectedText(); editor.setSelectedText(''); // Set cursor position to end of previous line editor.setSelectedRange(range-1);
After Success Nothing Notification Error Log Level Info
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.