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

Fix: Disable HTML on navigation link #19483

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

jorgefilipecosta
Copy link
Member

Description

Fixes: #19475

We should not allow HTML edit on the navigation link block because that block is dynamic, and the markup is generated on the server.

How has this been tested?

I added a navigation block.
I added a navigation link inside, and I verified the Edit HTML option is not available on the block menu (ellipsis menu).

@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Block] Navigation Affects the Navigation Block labels Jan 7, 2020
Copy link
Member

@Soean Soean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now the option is not available.

@Soean Soean merged commit cf2a4b4 into master Jan 7, 2020
@Soean Soean deleted the fix/disable-html-on-navigation-link branch January 7, 2020 21:48
@ellatrix ellatrix added this to the Gutenberg 7.3 milestone Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigation Block Edit as HTML Makes Content Disappear
3 participants