You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While editing the Table-block in HTML, I try to add a class by class="xyz" to any tr or td. Then the block is locked, and I can not continue editing the block as expected. When I then press the buttons "Konvertera till HTML" and "Lös upp" (Convert to HTML and Dissolve) nothing happens in the browser. I'm stuck.
To reproduce
Steps to reproduce the behavior:
Go to any page or post
Click on Add table block
Create a table with 2 column and 4 rows.
Add dummy content to all cells.
Click the "Edit as HTML-option" for the block
Add class="xyz" to any tr or td.
Click outside block.
See error in console.
Try to click the two buttons in the table-block. Nothing happens
Expected behavior
I expect the editor to continue work without any problem, as I only add a class to tr/td.
Screenshots
Console error.
The two buttons.
Editor version (please complete the following information):
WordPress version: 5.4
Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? "default"
If the Gutenberg plugin is installed, which version is it? N/A
Desktop (please complete the following information):
I can confirm this as a bug. I think being able to edit the HTML in that mode makes sense with adding a class, so let's flag this as a bug, thanks for reporting.
This isn't a bug related to the table block, it'll happen with any static block when modifying certain bits of HTML.
If we wanted to solve this just in the context of the table block, we'd need to be able to specify custom class names for table sections, rows, columns, which is pretty much impossible from a UI perspective without a way to select those regions.
Describe the bug
While editing the Table-block in HTML, I try to add a class by
class="xyz"
to any tr or td. Then the block is locked, and I can not continue editing the block as expected. When I then press the buttons "Konvertera till HTML" and "Lös upp" (Convert to HTML and Dissolve) nothing happens in the browser. I'm stuck.To reproduce
Steps to reproduce the behavior:
class="xyz"
to any tr or td.Expected behavior
I expect the editor to continue work without any problem, as I only add a class to tr/td.
Screenshots
Console error.
The two buttons.
Editor version (please complete the following information):
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: