Skip to content

Insecure Content Warning Visibility Issue with long content  #175

@ankitguptaindia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions