Created attachment 143015 [details] Cutting a full table In the editor, cutting and pasting a full table does not remove the original table, only its contents. The empty table remains. 1, Insert a table in the editor, fill its cells with some words 2, Select the full table and cut it. The cell texts disappear, but the table structure stays. 3, Paste the table. The table appears with the correct amount of cells and text - this part is good. Expected result: There should be only one table after cut+paste
Created attachment 143016 [details] After pasting the clipboard
*** This bug has been marked as a duplicate of bug 84806 ***
Other than being a dupe, if you include an empty paragraph before with an <alt>+enter before selecting the table, a cut/copy & paste will behave...
(In reply to V Stuart Foote from comment #3) > Other than being a dupe, if you include an empty paragraph before with an > <alt>+enter before selecting the table, a cut/copy & paste will behave... Thanks for detecting the older one and the workaround tip, that works for now.
Reopened because table cut and table moving are not exactly the same, especially in terms of code fixing. Note: the suggested workaround (selecting a paragraph before the table) doesn't work in the case of nested tables.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/144bdd189d07faef0f71edbd039359665a45876c tdf#118311 Writer: cut selected table, not only its text content It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
tdf#118311 Writer: cut selected table, not only its text content like MSO does. For example, if the text cursor in the table, press Ctrl-A (Select All) twice (or if the cell is empty, once), and Ctrl-X (Cut) to cut the table. Note: This speeds up table moving and deletion significantly, because there were only the following nonintuitive and uncomfortable methods to cut and insert the table: 1) inserting an empty line before the table, and selecting that, too, Ctrl-X, Ctrl-V (Paste) and deleting the empty line after table insertion. Unfortunately, this doesn't work in the case of nested tables. 2) or selecting only the table, Ctrl-C (Copy), Table->Delete->Table and Ctrl-V. Note: It's still possible to cut only the selected text content using Copy and Delete. See also https://bz.apache.org/ooo/show_bug.cgi?id=8931 "Deleting a table" from 2002 and https://bz.apache.org/ooo/show_bug.cgi?id=39405 "delete/cut also table, not only contents" from 2004.