Skip to content

Releases: vanillawc/wc-codemirror

Make Slot Editable

15 Nov 17:55
Compare
Choose a tag to compare

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

12 Nov 21:23
Compare
Choose a tag to compare

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()

12 Nov 20:44
Compare
Choose a tag to compare

Update README.md

27 May 19:38
Compare
Choose a tag to compare
v1.9.7

1.9.7

Fix Discord Link

15 May 18:06
Compare
Choose a tag to compare
v1.9.6

1.9.6

Fix Build Script

11 May 18:09
Compare
Choose a tag to compare
v1.9.5

1.9.5

Bump CodeMirror

10 May 20:09
Compare
Choose a tag to compare
v1.9.4

1.9.4

Update 'copy' Scripts

10 May 20:02
Compare
Choose a tag to compare
v1.9.3

1.9.3

Upgrade ESMTK

10 May 19:59
Compare
Choose a tag to compare
v1.9.2

1.9.2

Fix memory leak

27 Sep 20:21
Compare
Choose a tag to compare

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.