Skip to content

Embed blocks: Clicking pencil/edit the pencil becomes hidden, #11439

@paaljoachim

Description

@paaljoachim

Describe the bug
I am calling this a "bug."
Clicking the pencil/edit icon opens the embed link. The pencil is removed. If one clicks outside of the box it stays on the embed link. Here it should revert to the link if there is one and show the video.

To Reproduce
Steps to reproduce the behavior:

  1. Embed a youtube video.
  2. Click pencil/edit.
  3. Clicking outside the box the embed url box is still there. It should revert to last selected video.
  4. Looking for pencil to bring back the embed is not possible. One has to click the embed button.

Expected behavior
Clicking pencil/edit. Should keep the pencil icon visible. As one can click it once to open the embed url link box. Then click it again to close.
When link url box is visible and there is already a link in it. Clicking outside the box the box should revert back to the video.

Screenshots

Video options:
screen shot 2018-11-02 at 22 51 06

Clicking edit/pencil (the pencil is now hidden):
screen shot 2018-11-02 at 22 51 22

Desktop (please complete the following information):

  • OS: Mac OS 10.13.6
  • Browser Chrome and Desktop Server
  • Gutenberg version 4.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions