Skip to content

Adding block in Code Editor mode produces placeholder markup #9807

Closed
makbarGroup/gutenberg
#31
@iandunn

Description

In the Classic editor, if you're in Text mode and you click on the Add Media button, the media modal pops up. You can then select an image, and its raw markup will be inserted into the post content. You get the same markup as you would performing that operation in Visual mode.

In Gutenberg, however, if you switch to the Code Editor and add an Image block, you just get placeholder markup:

<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->

If you select a table block, all you get is <!-- wp:table /-->

Reported on the forums.

I'd expect the block GUI to pop up and allow selection of options, etc. Then, the proper markup should be inserted into the post content.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] Code EditorHandling the code view of the editing experience[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions