docusaurus-plugin-docs-editor icon indicating copy to clipboard operation
docusaurus-plugin-docs-editor copied to clipboard

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

Open hukarere opened this issue 3 years ago • 3 comments

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.

hukarere avatar Mar 23 '22 17:03 hukarere

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!

jlvandenhout avatar Mar 26 '22 14:03 jlvandenhout

@jlvandenhout,

Thank you!

hukarere avatar Mar 26 '22 21:03 hukarere

@jlvandenhout,

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

hukarere avatar Mar 28 '22 00:03 hukarere