Skip to content

Pasting from excel inserts an image instead of a formatted table #8472

@lukra3

Description

@lukra3

Describe the bug
When copying a table from excel desktop app and pasting it into the editor
the table is inserted as an image instead of preserving the table markup. I first have to paste it into word, copy it there and then paste it into the editor to have it inserted as an actual table instead of an image.

To Reproduce
Steps to reproduce the behavior:

  1. Create table and copy it
  2. Paste copied table into editor (e.g edit new page in collective)
  3. It is displayed as image

Expected behavior
Copied table should preserve its markup when being pasted directly into editor and be dislayed as an actual table, which can be edited. It should not be pasted in as an image.

Screenshots
Copied and directly pasted into editor:

Image

First pasted into word file and then copied from there:

Image

Server details:

  • Nextcloud version: 32.0.4
  • PHP Version: 8.3.29
  • Database: PostgreSQL 17.7

Client details:

  • OS: Windows
  • Browser: Firefox / Chrome
  • Browser version: Firefox: 149.0.2 / Chrome: 147.0.7727.56
  • Device: Desktop
Logs

Nextcloud log (data/nextcloud.log)

No log entry related to this

Browser log

Browser console output after i inserted the table directly into editor:

Error: <linearGradient> attribute gradientTransform: Expected '(', "rotateX(285)". Editor.vue:529

 Promise.then  
 onChange  @  Editor.vue:529
 _handleResponse  @  PollingBackend.ts:148
 Promise.then  
 _fetchSteps  @  PollingBackend.ts:139
 setInterval  
 connect  @  PollingBackend.ts:108
 startSync  @  SyncService.ts:189
 (anonymous)  @  Editor.vue:518
 Promise.then  
 onOpened  @  Editor.vue:517
 open  @  SyncService.ts:178
 await in open  
 constructor  @  WebSocketPolyfill.ts:56
 (anonymous)  @  y-websocket.js:165
 connect  @  y-websocket.js:560
 constructor  @  y-websocket.js:444
 (anonymous)  @  SyncServiceProvider.js:41
 initSession  @  Editor.vue:434
 created  @  Editor.vue:411
 render  @  editor.js:77
 (anonymous)  @  editor.js:289
 await in (anonymous)  
 setupEditor  @  useEditor.js:84
 mounted  @  TextEditor.vue:129
 (anonymous)  @  main.js:29
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions