Consider creating a more standardized way to transform blocks #11473
Labels
[Feature] Block Transforms
Block transforms from one block to another
[Type] Enhancement
A suggestion for improvement.
Describe the bug
Transform block to control doesn't have a logical flow between blocks.
To Reproduce
Steps to reproduce the behavior:
Add a new code block:
Click on transform to control on block:
You are presented only with the
<pre>
block to transform to.Select the
<pre>
block to transform the<code>
block into a<pre>
now.Click on transform to control again:
You are presented with being able to transform block to a paragraph block.
Select the paragraph block to transform the
<pre>
into a<p>
now.Click on transform to control again:
You are presented with being able to transform block to preformatted, heading, list, verse, or quote blocks.
Expected behavior
a. In the initial transform to for the
<code>
block - I would expect to be able to also transform the<code>
block into a<p>
block since ultimately I can change it to a<pre>
then into a<p>
.b. When I'm in the
<pre>
block's transform to control, I would expect to be able to transform to the original state of the block, in this case transform back to the<code>
block I originally inserted. I would expect this behavior for all<pre>
blocks, and only mention the original state because it would make sense that this area displays the block types that were previously used for this area in the order that they were used before new transform to block types.c. When I'm in the paragraph block, I would expect to be able to also transform not only to a
<pre>
but to a<code>
block as well.Note: It's not necessarily unusable because I can undo once I changed from a code block to a pre block to get back to editing a code block. From a UI perspective though, I expect to be able to traverse back to the same state from the same entry point I made the change from.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: