Skip to content

v2.4.2

Latest

Choose a tag to compare

@tophf tophf released this 28 Jun 06:11
· 1 commit to master since this release
  • Fix @preprocessor stylus so it keeps @media inside its respective document section.
  • Fix bugs listed in the previous release.

Known bugs (fixed in the nightly builds):

  • Live preview while editing moves the cursor to the error position reported by the linter/preprocessor thus severely hindering your ability to fix the temporarily broken syntax. The workaround is to either increase the delay of live preview or run the following code in devtools console of the editor every time you open it to disable the behavior:
    Object.defineProperty(document.getElementById('preview-error'), 'hidden', {
      get() {
        return this.hasAttribute('hidden');
      },
      set(val) {
        if (!val) {
          const cm = document.querySelector('.CodeMirror').CodeMirror;
          cm.jumpToPos = cm.setSelections = () => {};
          Promise.resolve().then(() => delete cm.jumpToPos && delete cm.setSelections);
        }
        this.toggleAttribute('hidden', val);
      },
    });

Full Changelog: v2.4.1...v2.4.2