Bold button stays active in blog editor

Hi all,
We’ve hit a problem in the blog post editor and want to know if it’s known.

The problem

If a blog post’s content starts with a tag, the Bold button in the toolbar shows as active no matter where the cursor is — including in plain paragraphs further down. Because the button is a toggle, pressing it then removes bold instead of applying it, so editors can’t bold text.

Minimal reproduction

Put this in a blog post via Advanced → Source code, save, and reload the page:

This first paragraph is bold.

This paragraph is plain text with no formatting.

Another plain paragraph.

Click into the third paragraph. The B button is already highlighted, while Italic and Underline are not. Select some text and press B — nothing becomes bold.

Now remove the

This first paragraph is bold.

This paragraph is plain text with no formatting.

Another plain paragraph.

Save, reload, click into the third paragraph — B is now inactive and bolding works normally.

This does NOT happen with inline styling

This first paragraph is bold.

This paragraph is plain text with no formatting.

Here the Bold button behaves correctly. So it seems tied to the tag specifically, not to bold styling in general.

Already ruled out.
Screenshots:

Now I changed the Source Code as I mentioned above. Here is the updated Source code.

We initially suspected our custom theme’s CSS. It isn’t — the stylesheet is byte-identical between the broken and working cases above. Only the post content differs.

Question:

Is this known? Is there something about how the editor reads formatting state from existing content that we should work around?

Thanks.

@jay_pinetco, I haven’t seen this exact one, so I can’t say it’s a known bug. It does sound like the editor is reading the first element’s formatting and treating the whole body as bold. Here’s what I’d try:

  • Swap the first element for a plain paragraph with inline styling, which you already found works
  • Test the same post in an incognito window with extensions off, to rule out the browser
  • Try a fresh blog post with the same source, to see if it’s tied to this post or the theme
  • Check the Blog Content module toolbar in the editor, since that’s where the formatting buttons live

If it still happens, I’d send your repro steps and screenshots to HubSpot Support so they can log it. Your repro is already clear enough for that.

Help article (has screenshots): Create and customize blog posts

Hey @jay_pinetco,

thanks for all the details.
Couldn’t reproduce it in none of my theme setups. Neither full custom HubL themes, child-themes of marketplace once…

Since you’ve mentioned it’s a custom theme …
Is it a HubL or React based one?

Also, check the JS of your theme. CSS can’t control something like the rich-text bar.

Furthermore, try looking into the console while inspecting the element. For me, there are tons of warnings and errors - none of them related to my theme but it might be in your case.

best,
Anton