我正在按照这里的说明创建一个firepad编辑器。 我的代码是: function init() { var firepadRef = getExampleRef(); var codeMirror = CodeMirror(document.getElementById(‘firepad-container’), { lineWrapping: true }); var firepad = Firepad.fromCodeMirror(firepadRef, codeMirror, { richTextToolbar: true, richTextShortcuts: true }); firepad.on(‘ready’, function() { if (firepad.isHistoryEmpty()) { firepad.setHtml(‘Rich-text editing with Firepad!Collaborative-editing made easy.\n’); } }); } function getExampleRef() { var ref = new Firebase(‘https://firepad.firebaseio-demo.com’); var hash = window.location.hash.replace(/#/g, […]