Skip to content

Insecure Content Warning Visibility Issue with long content  #175

Description

@ankitguptaindia

Describe the bug

Description of the issue:

When a post or page contains long content and triggers an insecure content warning, the page should automatically scroll to the top and highlight the error. Currently, if a post/page with long content has insecure content, after clicking the publish/update button, the user is unable to identify the cause of the failure because the warning appears at the top of the screen, which may not be visible due to the length of the content.

Recording.737.mp4

Steps to Reproduce

Steps to Reproduce:

  1. Create or edit a post/page.
  2. Add a significant amount of content to the editor to make the page scrollable.
  3. Insert insecure content
  4. Click the publish/update button.

Screenshots, screen recording, code snippet

Expected Result:

The page should automatically scroll to the top and highlight the insecure content warning, making it clear to the user why the post/page is not published.

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions