Copying and pasting large table into page results in table going off the page. #1736

Open
opened 2026-02-05 01:44:23 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Skyler-Altol on GitHub (May 18, 2020).

Describe the bug
Copying and pasting a large table from somewhere else into bookstack results in the table going off the page horizontally, across the edit, revision, etc buttons, and onwards until it reaches the edge of the table.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create a large table in Word, Excel, Powerpoint, or even on another website.
  2. Copy the entire table to clipboard
  3. Edit a page
  4. Paste the table into the editor
  5. Save the page and view the results.

Expected behavior
I would expect the page to expand to fit the table.

Another option is to allow the user to set the page size for that specific page. Rather than making the page adjust itself, allow the user to increase the page size from A4, to A3 for example. Could also allow landscape orientations.

Screenshots
Screenshot in comments below.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.29.3
  • PHP Version: 7.3.17 (From Fedora 31 official repositories)
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
None.

Originally created by @Skyler-Altol on GitHub (May 18, 2020). **Describe the bug** Copying and pasting a large table from somewhere else into bookstack results in the table going off the page horizontally, across the edit, revision, etc buttons, and onwards until it reaches the edge of the table. **Steps To Reproduce** Steps to reproduce the behavior: 1. Create a large table in Word, Excel, Powerpoint, or even on another website. 2. Copy the entire table to clipboard 3. Edit a page 4. Paste the table into the editor 5. Save the page and view the results. **Expected behavior** I would expect the page to expand to fit the table. Another option is to allow the user to set the page size for that specific page. Rather than making the page adjust itself, allow the user to increase the page size from A4, to A3 for example. Could also allow landscape orientations. **Screenshots** Screenshot in comments below. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 0.29.3 - PHP Version: 7.3.17 (From Fedora 31 official repositories) - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** None.
Author
Owner

@Skyler-Altol commented on GitHub (May 28, 2020):

Ok I have finally had some time to get an image of what this looks like (apologies, university exams are royally painful), and so here it is:

Showing table problem

@Skyler-Altol commented on GitHub (May 28, 2020): Ok I have finally had some time to get an image of what this looks like (apologies, university exams are royally painful), and so here it is: ![Showing table problem](https://user-images.githubusercontent.com/13567892/83086832-2951ed00-a0d3-11ea-9c80-6943d41f2e0a.PNG)
Author
Owner

@eceforge commented on GitHub (Jun 27, 2020):

It's worth noting that this can happen even with tables that you make yourself. If you put pictures or other wide items in the cells of the table, then it can easily take the table off the edge of the content section. But the only real alternative I suppose would be to make elements that are too wide horizontally scrollable, which would be tricky I imagine

I suppose the biggest question I have is why is the content section so relatively narrow even in on wide screens?

@eceforge commented on GitHub (Jun 27, 2020): It's worth noting that this can happen even with tables that you make yourself. If you put pictures or other wide items in the cells of the table, then it can easily take the table off the edge of the content section. But the only real alternative I suppose would be to make elements that are too wide horizontally scrollable, which would be tricky I imagine I suppose the biggest question I have is why is the content section so relatively narrow even in on wide screens?
Author
Owner

@barser commented on GitHub (Feb 18, 2022):

Maybe allowing to place control panel at left side (or even at bottom) could address this issue with not so much of effort, what do you think?

@barser commented on GitHub (Feb 18, 2022): Maybe allowing to place control panel at left side (or even at bottom) could address this issue with not so much of effort, what do you think?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1736