Live data from Hacker News

Show HN: Firepad, an open source collaborative text editor

firepad.io

61–65 of 65 posts

Re: Show HN: Firepad, an open source collaborative text editor

#61
post #56

Earlier quoted context omitted.

So, when you say it's "fully client-side code" -- what that looks to me to mean is not that it's not talking to a server somewhere, but that it's talking to Firebase's servers rather than my servers. Is that correct?

Right, communication to Firebase happens with its API.

Can you run it without it communicating with Firebase? (If not, how is that better than having it under your own control?)

Re: Show HN: Firepad, an open source collaborative text editor

#64
post #43

Earlier quoted context omitted.

Sure, now they'll need to do `cm = document.body.getElementsByClassName("CodeMirror")[0].CodeMirror` first. (I.e. it's client-side, you can't prevent people from doing whatever they want.)

Well, if you don't attach the Firepad instance to the element and it's in a closure I'm pretty sure you couldn't modify it. I'd love to be corrected if this is incorrect. Obviously you can't be stopped from editing the contents of the editing area, so if it works by simply checking for your updates to the editor then you can't stop it.

Browsers have debuggers, which allow users to set breakpoints and inject/run arbitrary code in the context of some function. (At least Chrome allows that, not sure about others.)
Post reply on HN