jlvandenhout / docusaurus-plugin-docs-editor

57 stars 13 forks source link

The popup menu with Heading 1/Heading 2/etc not working #40

Open hukarere opened 2 years ago

hukarere commented 2 years ago

Hello,

I tried 'Local testing' of this plugin as described in https://github.com/jlvandenhout/docusaurus-plugin-docs-editor#local-testing.

In the editor, buttons such as Bold or Bullet list do work, but the popup menu with Normal Text/Heading 1/Heading 2 can only change an existing heading to normal text, but not vice versa: if I select a normal text and click on 'Heading 1', nothing happens. If I click 'Heading 1' on an empty line and then try to type any text, the cursor just disappears and it's impossible to type anithing.

Any hints?

Tested in firefox, chrome and chromium.

jlvandenhout commented 2 years ago

My best guess is something changed in the @tiptap/extension-heading TipTap plugin logic from the top of my head. I need to investigate, but I'm a little occupied the coming week. Let me get back to this!

hukarere commented 2 years ago

@jlvandenhout,

Thank you!

hukarere commented 2 years ago

@jlvandenhout,

Just discovered that Heading formatting does not work in your Live Preview (https://jlvandenhout.github.io/docusaurus-plugin-docs-editor), too.