Years since I've really dabbled in WYSIWYG editing JS, but the best I can think of us to use a reset CSS file namespaced for the `div` (or whatever container) in question.
The Scoped Polyfill https://github.com/PM5544/scoped-polyfill does just this and gets you most of the way there.
> It does so by prepending the styleRules selectorText with id's
Years since I've really dabbled in WYSIWYG editing JS, but the best I can think of us to use a reset CSS file namespaced for the `div` (or whatever container) in question.