codemirror / dev

Development repository for the CodeMirror editor project

Home Page:https://codemirror.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reinitialise styling

sergiy-sc opened this issue · comments

Describe the issue

I'm integrating CodeMirror into Blazor Server Side Rendering project. It has a feature called "enhanced navigation". It intercepts links and downloads page using javascript and then patches DOM. As a result, there is no page refresh. It looks nice but causes issues with some of the libraries. Here is an example:

image

HTML looks fine, but styles are missing. So I was wondering, is there a function I could call which would initialize styles?
Thanks!

Browser and platform

Chrome Version 120.0.6099.109 (Official Build) (arm64)

Reproduction link

No response

If I understand correctly that the editor is re-created after the page was cleared, I think upgrading to style-mod 4.1.1 should help with this.

Thanks, I will try!

Thank you, it works now!