yabwe / medium-editor

Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.
https://yabwe.github.io/medium-editor/
Other
16.05k stars 1.85k forks source link

H2/H3 also select B (with Default Theme) #1424

Open g3rd opened 6 years ago

g3rd commented 6 years ago

Description

When I click the <H2> or <H3> button, the <B> button is also selected.

Possibly related, my page styles include font-style: italic; on <blockquote>. When I select the <blockquote> button the <i> button is also selected.

Steps to reproduce

  1. Configure base setup with default theme (see example in the codepen)
  2. Create an H2, H3, and blockquote

Expected behavior: Selecting H2 or H3 does not show the B button selected

Actual behavior: When H2 (or H3) is selected. Bold is also selected

Link to an example: https://codepen.io/webchad/pen/mXaEvY

Versions

jaymanned commented 6 years ago

+1

jaymanned commented 6 years ago

Also text with link highlights the underline botton

jaymanned commented 6 years ago

I don't know if this is intended as you can see this at the demo page