Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block: Add option to transform back to Paragraph #43879

Closed
annezazu opened this issue Sep 5, 2022 · 2 comments · Fixed by #43938
Closed

Code block: Add option to transform back to Paragraph #43879

annezazu opened this issue Sep 5, 2022 · 2 comments · Fixed by #43938
Assignees
Labels
[Block] Code Affects the Code Block [Block] Paragraph Affects the Paragraph Block [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

annezazu commented Sep 5, 2022

What problem does this address?

Currently, one can transform from a paragraph block to a code block but, in order to transform back to a paragaph block, one must first transform from code to pre-formatted and then an option for a paragraph block appears. This was found as part of the sixteenth call for testing for the FSE Outreach Program:

Changing a paragraph into any blocks can easily be reverted back into a Paragraph Block, except when it is changed to a Code Block. While one can easily unwrap a quote back to a paragraph, or revert a pullquote, a preformatted, a verse, a heading, or a list back to paragraph block. The same effortlessness is gone once the paragraph is transformed to a Code Block. Here one is faced with unintuitive options to operate on the Code Block (quote, preformatted, group, columns, custom HTML). To transform the Code Block into a paragraph, it needs to be changed into a Preformatted Block first.

code.to.paragraph.transform.mov

What is your proposed solution?

Add the option to transform to a paragraph block to the code block's transform menu:

Screen Shot 2022-09-05 at 3 31 30 PM

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Block] Paragraph Affects the Paragraph Block [Block] Code Affects the Code Block labels Sep 5, 2022
@annezazu
Copy link
Contributor Author

annezazu commented Sep 5, 2022

The option to switch from Paragraph to Code was originally implemented here: #38295 The reverse just wasn't done :)

@Mamaduka
Copy link
Member

Mamaduka commented Sep 6, 2022

Happy to handle this one.

@Mamaduka Mamaduka self-assigned this Sep 6, 2022
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Sep 7, 2022
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Code Affects the Code Block [Block] Paragraph Affects the Paragraph Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants