Skip to content

There should be a way to remove "Drop Caps" added with older version of the editor #45549

@mrfoxtalbot

Description

@mrfoxtalbot

Description

Older versions of the editor allowed to set a "Drop Cap" on paragraph blocks.

This option is no longer available in the editor but any paragraphs that include a Drop Cap will still show it. The problem is that users do not have an easy way to remove this dropcaps, since the interface no longer offers this option.

This problem was flagged in this support thread: https://wordpress.org/support/topic/remove-anfang/

I provided some simple CSS to override the drop cap styles:

p.has-drop-cap::first-letter {
  font-size:inherit !important;
  font-weight:inherit !important;
  line-height:inherit !important;
  margin:0 !important
}

I am not sure what to suggest to fix this. It might make sense to address this at a theme-level?

Step-by-step reproduction instructions

  1. Create a post with WP version 5.4 and give the paragraph a drop cap.
  2. Update your WP version to 6.1 and edit that same post again.
  3. The drop cap will not be visible in the editor but it will still be in the public post.

Screenshots, screen recording, code snippet

I recorded this video to illustrate the problem:

Screen.Capture.on.2022-11-04.at.12-00-55.online-video-cutter.com.mp4

Environment info

  • WP 5.4 then WP 6.1
  • This is device and browser independent.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backwards CompatibilityIssues or PRs that impact backwards compatability[Block] ParagraphAffects the Paragraph Block[Type] BugAn existing feature does not function as intended

    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