You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At minimum, I'd like a node module that can get the current HTML for your Firepad.
var Firepad = require('firepad');
var firepad = new Firepad(new Firebase('https://YOUR.firebaseio.com/firepad/'));
firepad.getHtml(function(html) {
console.log(html);
});
But preferably it'd support as much of the firepad API as we can (ready, getHtml / setHtml, etc.). E.g.:
var firepad = Firepad.headless(new Firebase('https://YOUR.firebaseio.com/firepad/'));
firepad.on('ready', function() {
var oldHtml = firepad.getHtml();
firepad.setHtml('<b>This is the new thing.</b>');
});
At minimum, I'd like a node module that can get the current HTML for your Firepad.
But preferably it'd support as much of the firepad API as we can (ready, getHtml / setHtml, etc.). E.g.:
One semi-hacky approach is to do what Clément did here to get CodeMirror / a full DOM working inside Node: http://stackoverflow.com/questions/23498656/firepad-fetch-and-save-the-content
The text was updated successfully, but these errors were encountered: