Copy & Paste right click menu option doesn't copy or paste anything

Created on 16 May 2022, over 2 years ago
Updated 3 September 2024, 5 months ago

The following is implemented but doesn't work:

"copy_paste": {
    "name": Drupal.t('Copy & Paste'),
    "callback": function (name, selected, clickpoint) {
        for (var row = selected.start.row; row <= selected.end.row; row++) {
            for (var col = selected.start.col; col <= selected.end.col; col++) {
                var value = this.getCellMeta(row, col).placeholder;
                if (value) {
                    this.setDataAtCell(row, col, value);
                }
            }
        }
    }
}

Figure out a solution for the common Cut, Copy, Paste operations.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024