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](https://private-user-images.githubusercontent.com/99789323/307909087-7eaac82d-ce2b-4bd6-8098-b237669caf6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI2MTcyMDAsIm5iZiI6MTcyMjYxNjkwMCwicGF0aCI6Ii85OTc4OTMyMy8zMDc5MDkwODctN2VhYWM4MmQtY2UyYi00YmQ2LTgwOTgtYjIzNzY2OWNhZjZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAyVDE2NDE0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2YmIxOGI0MjdmYjA0ZWVhMGU4OGJhOWYwNWRlNGViODdjMGMwMjQ5MWRjNmFkNmY5ODkxYTY0MzA0ZWNkYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ghIvp1_xCSUhBPSGE22eFdAJ-4VR_o0X_X6aQffzqno)
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!