We are currently utilizing the Summernote wysiwyg editor to review and preview html content, some of which contains external stylesheet references. This css not only affects Summernote itself but also alters the styling of the parent page where Summernote is situated.
An easy way to observe this issue is by visiting the summernote.org website and inserting the provided css reference into the online editor (make sure to switch to code view first). You will notice that the toolbar and other elements on certain pages become center-aligned, causing unintended visual changes due to the injected css:
<link href="https://owa.kccd.edu/owa/14.3.248.2/themes/resources/logon.css" rel="stylesheet" type="text/css" />
We have attempted to contain Summernote within an iframe tag, but unfortunately, this approach does not resolve the issue. Is there a method to isolate Summernote in order to prevent this css "leakage" to affect the surrounding page?
Just for your information, we are working with asp.net Razor pages.
Thank you. James