~smallick

a small programmer


#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

I was using the textarea editor before... No option in this browser to "disable" JS. For now, I have to use a "bookmarklet" like this after loading that page:

javascript:document.querySelector('#editor').setAttribute('style','display:none')

Anyway, thanks for your support and design of these websites that work even on these older, "unsupported" browsers. That's great for (few) people like us who are still stuck with these.

#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

Solution that works for me:

(() => { // parsing stops on '=>'
    document.getElementById('editor').style.display = 'none'
})()
// heck even:
let $$$$$

because parsing&executing stops at features of ES6, these would work.

#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

Auch. Double posting. Forgive me. I also have a pretty bad (2G) internet connection.

#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

Hmm. Found the problem.

/* Reduce effects of FOUC for JS users */
document.getElementById('editor').display = 'none';

Then, down below, the CM is initialized. Because my browser does not work for ES6, thats fine and CM does not work well in my browser as well, so need for that to me.

I use an old browser on an currently outdated platform (a J2ME feature phone).

#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

Hmm. Found the problem.

/* Reduce effects of FOUC for JS users */
document.getElementById('editor').display = 'none';

Then, down below, the CM is initialized. Because my browser does not work for ES6, thats fine and CM does not work well in my browser as well, so need for that to me.

I use an old browser on an currently outdated platform (a J2ME feature phone).

#265 Switch to CodeMirror for editing manifests 4 years ago

Comment by ~smallick on ~sircmpwn/builds.sr.ht

Sorry. The current editor does not work on my browser. Maybe my browser is too old.

The previous "editor" gave me a plain textbox, but the current one gives me nothing. Plain empty! At least a plain textbox would be appreciated.

Opening browser console tells me that CodeMirror's code uses ES6 but my browser supports upto ES5.1...