Converting a table in a classic block to a table block removes all inline styles #6096
Closed
2 tasks
Labels
[Feature] Block Transforms
Block transforms from one block to another
[Feature] Blocks
Overall functionality of blocks
[Feature] Paste
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
In the latest version of Gutenburg (Version 2.5.0 ). If you have a table set-up with in-line styles, Gutenburg will remove the styles when you convert it to a block.
Steps to Reproduce (for bugs)
Expected Behavior
In-line CSS is kept, however you can change the values visually. You should also be able to delete rows and columns.
It would be great if the visual editor displayed the colors and other CSS too. Also it would be nice to be able to change the colors. But for now, just being able to edit the values and not remove all the in-line CSS would be good for users who don't know how to code.
Current Behavior
All of the in-line CSS for the table is removed when you convert a table from the classic block to the table block.
Possible Solution
Don't remove the in-line CSS when converting to a table block. The data is kept, so why remove the CSS?
Screenshots / Video
How the Gutenberg classic block looks like:
How the Gutenberg table block looks like after converting:
The HTML after converting (it has removed the in-line styles)
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: