Skip to content

font-weight appears in code when someone uploads a post #1714

@RamouzK

Description

@RamouzK

Hi team,

Most times when someone uploads a post via the frontend form that we have, it includes this code all over <span font-weight: 400;>
This overrides our default blog post CSS.

Thus, each time, I have to highlight everything and click the Clear formatting button, but that's only if there's no actual manual bold text. Otherwise, I have to take the code, paste in Notepad++, remove all font-weight: 400; and paste it back in Code tab. Then, when I go to Visual, it's normal and erases all the <span> tags.

It's a hassle, as you can tell.

When someone uploads using your plugin, it shouldn't add that font-weight.

I can't tell when this happens though. I tried asking some of the clients who upload but I can't figure it out. I'm thinking they're copying their text from Google Docs, or from an online app that checks for grammar. Or, they use Mac computers? I use Windows 10 and do not get that when I upload on my own using a text from Word (docx). But, I also tried from Google Docs and didn't have an issue. I'm guessing Mac is the guilty one?

Secondly, those that manually bold their text, the bold text gets this tag <b> instead of <strong>. Shouldn't your plugin generate <strong> tag instead? Same happens with <i> and <em> from what I recall.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions