Bookstack: Pasting from excel produces image instead of table

Created on 24 Aug 2018  路  6Comments  路  Source: BookStackApp/BookStack

I noticed that pasting from Excel, either into a blank space in Bookstack or table, uploads an image of the cells. Is this the intended behavior? I tried the same thing into a TinyMCE demo on their website, and that instead produces a table like you'd expect

Bug WYSIWYG Editor > Markdown Editor

All 6 comments

BookStack is using TinyMCE 4.7.9, the latest version i 4.8.2.

I think the issue you experienced is related to this bug _"fixed a bug in the Table Plugin where some table cell styles were not correctly added to the content html."_ which was fixed in version 4.7.10 - https://www.tiny.cloud/docs/changelog/#version4710april32018

Hmm, Not the intended behaviour.
In BookStack we do have a custom paste listener to check the clipboard for images, so we can handle paste-image uploads, then prevent further action. Can only image Excel now adds screenshot-style image data to the clipboard along with the standard data. Will have a deeper look.

If possible please confirm your OS and Excel version.

This on Windows 10 with Excel 2016.

I just checked the Copy options in Excel and there are 2 options -- "Copy" and "Copy as Picture".
However regular copy must also include image data on the clipboard cause the paste handler still uploads an image using that.

Work around for me would just pasting to Google sheets or the like, and copying from that.

Thanks!

Just to confirm, I have the same issue in Linux Mint 19 and LibreOffice Calc 5.1.6.2 . Using Google docs or ONLYOFFICE works as a work around.

Have the same problem on Excel and LibreOffice.

Thanks everyone above for the details. Potential fix now applied in master, Will be in the next release. Fix tested on ubuntu+Libre office. Should be the same result in excel.

If this is still not fixed fro you after upgrading to v0.26.2 (once it's released) please let me know and I'll investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gab-cass picture gab-cass  路  3Comments

marcvef picture marcvef  路  3Comments

Biepa picture Biepa  路  3Comments

spacesven picture spacesven  路  3Comments

spiritedfang picture spiritedfang  路  4Comments