question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editor MenuBar buttons are not reactive

See original GitHub issue

The editor-menu-bar buttons are not reactive.

We have an app that contains multiple pages, navigating to a page creates a TipTap editor and populates the content based off query string of the desired page. When the first page containing an editor is loaded, everything works as expected, Upon loading another page the menuBar will not highlight the buttons correctly. Eg clicking bold will correctly bold the selected text, but the toolbar button will not be highlighted unless you click outside the editor. Using vue dev tools we can see that ‘IsActive.bold()’ value is correctly being updated.

It should be noted keeping all things the same, but changing editor-menu-bar to editor-menu-bubble fixes this issue entirely.

This occurs in Edge (Chromium), Edge Legacy, Chrome, and Firefox on Windows and Linux operating systems.

I am unsure if the reason is because when changing pages another editor is instantiated, but any input would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gregverescommented, Aug 27, 2020

And just to be clear to anybody else who runs across this, the work around is to just replace “editor-menu-bar” with “editor-menu-bubble”. You can still use your normal toolbar without having to adopt the bubble style menu.

0reactions
hanspagelcommented, Jan 7, 2021

Thanks for reporting @Cwhite534! And thanks @gregveres for sharing all the details! I’m closing this issue in favor for #700, which seems to report the same bug. ✌️

Read more comments on GitHub >

github_iconTop Results From Across the Web

[CKEditor.Reactive] Toolbar buttons not working ... - OutSystems
The toolbar buttons are not working when editing a field in a form. The shortcuts like ctrl+b etc.
Read more >
Sometimes the default toolbars or menu entries of IBM SPSS ...
The program runs fine but sometimes the default toolbar with the icons are lost on either Data Editor, Syntax Editor or Output Viewer....
Read more >
Remove Tab from toolbar of primeng p-editor - Stack Overflow
However I have a button on my reactive form to create a new p-editor. It doesn't work and will tab on the toolbar....
Read more >
Fix that menu bar on your website - Wix.com - YouTube
Wix Tutorial: Adding A Navigation Menu Bar To Your Wix Website ... Look GREAT on ALL Screen Sizes | WiX Classic Editor |...
Read more >
Editor Toolbar Wrapping in UI for Blazor | Telerik Forums
Is there a way to have the toolbar not wrap buttons down to a new line and ... nice and responsive UI for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found