Firebase 初始化Firepad时出错

Firebase 初始化Firepad时出错,firebase,firepad,Firebase,Firepad,我正在尝试使用Firepad。在尝试使用firepad时,我发现了以下错误 在Firefox中 Error: i.parentNode is null c@https://cdn.firebase.com/libs/firepad/1.3.0/firepad.min.js:15:16104 c@https://cdn.firebase.com/libs/firepad/1.3.0/firepad.min.js:15:15380 在Chrome中,我得到以下错误 TypeError: Canno

我正在尝试使用Firepad。在尝试使用firepad时,我发现了以下错误

在Firefox中

Error: i.parentNode is null
c@https://cdn.firebase.com/libs/firepad/1.3.0/firepad.min.js:15:16104
c@https://cdn.firebase.com/libs/firepad/1.3.0/firepad.min.js:15:15380
在Chrome中,我得到以下错误

TypeError: Cannot read property 'replaceChild' of null
at new c (firepad.min.js:15)
at Function.c (firepad.min.js:15)
at n.$scope.initFirepad (NotesUtils.js:231)


<div class="form-group">
<label for="inpNoteDescription" class="col-md-3 control-label">Note Description With Firepad</label>
<div class="col-sm-8" id="inpNoteDescription">
</div>
</div>  
参见?交叉张贴:参见?交叉张贴:
$scope.initFirepad = function(){
var firepadRef = $scope.initObj.firepadRef  ;        
var noteDescription = $scope.currentNote.description ;
var codeMirror = CodeMirror(document.getElementById('inpNoteDescription'), { lineWrapping: true });
var firepad = Firepad.fromCodeMirror(firepadRef, codeMirror, { richTextShortcuts: true, richTextToolbar: true, defaultText: noteDescription });
}