Firepad Error: TypeError: Cannot read property 'replaceChild' of null

159 views
Skip to first unread message

Lalit Rane

unread,
Jan 14, 2016, 8:08:58 AM1/14/16
to Firepad

I am trying to use Firepad. While trying to use firepad I am getting below error. Kindly let me know if I need to do something else.

In 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

In Chrome I am getting below error.

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)


Code given below.

<div class="form-group">
<label for="inpNoteDescription" class="col-md-3 control-label" id="inpNoteDescription">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 });
}

Michael Lehenbauer

unread,
Jan 14, 2016, 1:25:50 PM1/14/16
to Lalit Rane, Firepad
Nothing obvious is jumping out at me.  Maybe you could post a jsfiddle or something demonstrating the problem, and also perhaps switch from firepad.min.js to firepad.js so it's easier to debug...

Thanks,
-Michael

--
You received this message because you are subscribed to the Google Groups "Firepad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firepad-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/234a2ec5-7a80-477e-bcbd-bd1dcb7bb8a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages