Releases: vanillawc/wc-codemirror
Releases · vanillawc/wc-codemirror
Make Slot Editable
The contents of the wc-codemirror
element can now be edited. Changes to the inline styling and/or code will be reflected in the editor pane.
BREAKING: wc-codemirror now uses shadowDOM encapsulation
Unlike previous iterations, in v2.0+ wc-codemirror
is now shadowDOM encapsulated.
That means...
- setting styles globally will not change the styling of the web component
- CodeMirror and its themes will no longer pollute the global CSS namespace
- a theme's import (ie
<link>
) needs to be contained inside the body of the web component tag - it may require more work to override the default and/or theme styling
Fix #29: Unable to create via document.createElementNs()
Update README.md
v1.9.7 1.9.7
Fix Discord Link
v1.9.6 1.9.6
Fix Build Script
v1.9.5 1.9.5
Bump CodeMirror
v1.9.4 1.9.4
Update 'copy' Scripts
v1.9.3 1.9.3
Upgrade ESMTK
v1.9.2 1.9.2
Fix memory leak
Destruct the CodeMirror instance when disconnectedCallback()
is called. This would only realistically affect users who are creating/destroying a lot of wc-codemirror components but it's still worth cleaning things up properly.