Editor issue or how to question?

I’m trying to figure out how to embed a youtube video into an article, and whenever .I click the big + and then choose </> and then put something into that box and click “Insert” the page goes blank. But I see the following error in the javascript console:

slate.es.js:3009 Uncaught TypeError: Cannot read property ‘equals’ of null
at t.value (slate.es.js:3009)
at slate.es.js:14502
at t.value (slate.es.js:14679)
at t.value (slate.es.js:14501)
at Ge (slate.es.js:5792)
at insertBlockAtRange (slate.es.js:6377)
at e.value (slate.es.js:10790)
at t.value (slate-react.es.js:5155)
at onCommand (slate.es.js:5548)
at l (slate.es.js:10987)
at e.value (slate.es.js:11016)
at e.value (slate.es.js:10803)
at t.r [as insertBlockAtRange] (slate.es.js:10916)
at gt.insertBlock (slate.es.js:10125)
at e.value (slate.es.js:10790)
at t.value (slate-react.es.js:5155)
value @ slate.es.js:3009
(anonymous) @ slate.es.js:14502
value @ slate.es.js:14679
value @ slate.es.js:14501
Ge @ slate.es.js:5792
insertBlockAtRange @ slate.es.js:6377
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
gt.insertBlock @ slate.es.js:10125
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ Media.js:60
setTimeout (async)
submitCallback @ Media.js:59
(anonymous) @ Confirm.js:28
E @ runtime.js:63
(anonymous) @ runtime.js:282
e.(anonymous function) @ runtime.js:116
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ react-dom.production.min.js:49
f @ react-dom.production.min.js:69
(anonymous) @ react-dom.production.min.js:73
C @ react-dom.production.min.js:140
N @ react-dom.production.min.js:169
O @ react-dom.production.min.js:158
x @ react-dom.production.min.js:232
Tn @ react-dom.production.min.js:1718
Ds @ react-dom.production.min.js:5990
Le @ react-dom.production.min.js:660
Nn @ react-dom.production.min.js:1760
(anonymous) @ react-dom.production.min.js:6017
t.unstable_runWithPriority @ scheduler.production.min.js:274
Ms @ react-dom.production.min.js:6016
An @ react-dom.production.min.js:1737
r._rollbar_wrapped.r._rollbar_wrapped @ rollbar.js:10
rollbar.min.js:2 TypeError: Cannot read property ‘innerText’ of undefined
at O (draft.js:20)
at Object.ni [as useReducer] (react-dom.production.min.js:3389)
at useReducer (react.production.min.js:356)
at j (draft.js:31)
at Xo (react-dom.production.min.js:3274)
at Ni (react-dom.production.min.js:3745)
at Pi (react-dom.production.min.js:3957)
at za (react-dom.production.min.js:5514)
at Wa (react-dom.production.min.js:5536)
at Is (react-dom.production.min.js:5958)
at Ns (react-dom.production.min.js:5925)
at Ts (react-dom.production.min.js:5860)
at Ja (react-dom.production.min.js:5787)
at li (react-dom.production.min.js:3497)
at TextEditor.js:278
at E (runtime.js:63)
r.(anonymous function) @ rollbar.min.js:2
fa @ react-dom.production.min.js:4408
Ea.n.callback @ react-dom.production.min.js:4773
oa @ react-dom.production.min.js:4271
ra @ react-dom.production.min.js:4259
qa @ react-dom.production.min.js:4999
Va @ react-dom.production.min.js:5123
(anonymous) @ react-dom.production.min.js:5975
t.unstable_runWithPriority @ scheduler.production.min.js:274
xs @ react-dom.production.min.js:5974
Is @ react-dom.production.min.js:5958
Ns @ react-dom.production.min.js:5925
Ts @ react-dom.production.min.js:5860
Ja @ react-dom.production.min.js:5787
li @ react-dom.production.min.js:3497
(anonymous) @ TextEditor.js:278
E @ runtime.js:63
(anonymous) @ runtime.js:282
e.(anonymous function) @ runtime.js:116
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ TextEditor.js:54
onChange @ TextEditor.js:786
value @ slate-react.es.js:5136
onChange @ slate-react.es.js:5000
value @ slate.es.js:10769
(anonymous) @ slate.es.js:10744
Promise.then (async)
value @ slate.es.js:10743
value @ slate-react.es.js:5148
at.setData @ slate.es.js:9044
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:7940
Xe.withoutSaving @ slate.es.js:8046
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
Xe.save @ slate.es.js:7937
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:10722
value @ slate.es.js:11067
value @ slate.es.js:10721
value @ slate-react.es.js:5148
Je.select @ slate.es.js:8834
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:8879
Xe.withoutMerging @ slate.es.js:8031
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
Je.snapshotSelection @ slate.es.js:8878
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
deleteAtRange @ slate.es.js:5857
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
gt.delete @ slate.es.js:9966
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ Media.js:60
setTimeout (async)
submitCallback @ Media.js:59
(anonymous) @ Confirm.js:28
E @ runtime.js:63
(anonymous) @ runtime.js:282
e.(anonymous function) @ runtime.js:116
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ react-dom.production.min.js:49
f @ react-dom.production.min.js:69
(anonymous) @ react-dom.production.min.js:73
C @ react-dom.production.min.js:140
N @ react-dom.production.min.js:169
O @ react-dom.production.min.js:158
x @ react-dom.production.min.js:232
Tn @ react-dom.production.min.js:1718
Ds @ react-dom.production.min.js:5990
Le @ react-dom.production.min.js:660
Nn @ react-dom.production.min.js:1760
(anonymous) @ react-dom.production.min.js:6017
t.unstable_runWithPriority @ scheduler.production.min.js:274
Ms @ react-dom.production.min.js:6016
An @ react-dom.production.min.js:1737
r._rollbar_wrapped.r._rollbar_wrapped @ rollbar.js:10
Show 72 more frames
asyncToGenerator.js:6 Uncaught (in promise) TypeError: Cannot read property ‘innerText’ of undefined
at O (draft.js:20)
at Object.ni [as useReducer] (react-dom.production.min.js:3389)
at useReducer (react.production.min.js:356)
at j (draft.js:31)
at Xo (react-dom.production.min.js:3274)
at Ni (react-dom.production.min.js:3745)
at Pi (react-dom.production.min.js:3957)
at za (react-dom.production.min.js:5514)
at Wa (react-dom.production.min.js:5536)
at Is (react-dom.production.min.js:5958)
at Ns (react-dom.production.min.js:5925)
at Ts (react-dom.production.min.js:5860)
at Ja (react-dom.production.min.js:5787)
at li (react-dom.production.min.js:3497)
at TextEditor.js:278
at E (runtime.js:63)
O @ draft.js:20
ni @ react-dom.production.min.js:3389
useReducer @ react.production.min.js:356
j @ draft.js:31
Xo @ react-dom.production.min.js:3274
Ni @ react-dom.production.min.js:3745
Pi @ react-dom.production.min.js:3957
za @ react-dom.production.min.js:5514
Wa @ react-dom.production.min.js:5536
Is @ react-dom.production.min.js:5958
Ns @ react-dom.production.min.js:5925
Ts @ react-dom.production.min.js:5860
Ja @ react-dom.production.min.js:5787
li @ react-dom.production.min.js:3497
(anonymous) @ TextEditor.js:278
E @ runtime.js:63
(anonymous) @ runtime.js:282
e.(anonymous function) @ runtime.js:116
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ TextEditor.js:54
onChange @ TextEditor.js:786
value @ slate-react.es.js:5136
onChange @ slate-react.es.js:5000
value @ slate.es.js:10769
(anonymous) @ slate.es.js:10744
Promise.then (async)
value @ slate.es.js:10743
value @ slate-react.es.js:5148
at.setData @ slate.es.js:9044
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:7940
Xe.withoutSaving @ slate.es.js:8046
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
Xe.save @ slate.es.js:7937
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:10722
value @ slate.es.js:11067
value @ slate.es.js:10721
value @ slate-react.es.js:5148
Je.select @ slate.es.js:8834
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ slate.es.js:8879
Xe.withoutMerging @ slate.es.js:8031
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
Je.snapshotSelection @ slate.es.js:8878
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
deleteAtRange @ slate.es.js:5857
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
gt.delete @ slate.es.js:9966
value @ slate.es.js:10790
value @ slate-react.es.js:5155
onCommand @ slate.es.js:5548
l @ slate.es.js:10987
value @ slate.es.js:11016
value @ slate.es.js:10803
r @ slate.es.js:10916
(anonymous) @ Media.js:60
setTimeout (async)
submitCallback @ Media.js:59
(anonymous) @ Confirm.js:28
E @ runtime.js:63
(anonymous) @ runtime.js:282
e.(anonymous function) @ runtime.js:116
r @ asyncToGenerator.js:3
s @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ react-dom.production.min.js:49
f @ react-dom.production.min.js:69
(anonymous) @ react-dom.production.min.js:73
C @ react-dom.production.min.js:140
N @ react-dom.production.min.js:169
O @ react-dom.production.min.js:158
x @ react-dom.production.min.js:232
Tn @ react-dom.production.min.js:1718
Ds @ react-dom.production.min.js:5990
Le @ react-dom.production.min.js:660
Nn @ react-dom.production.min.js:1760
(anonymous) @ react-dom.production.min.js:6017
t.unstable_runWithPriority @ scheduler.production.min.js:274
Ms @ react-dom.production.min.js:6016
An @ react-dom.production.min.js:1737
r._rollbar_wrapped.r._rollbar_wrapped @ rollbar.js:10
Show 71 more frames

Ah so it looks like you tried to insert the youtube code.

Have you tried pasting in the youtube link and click enter?

Thanks for your reply @linh! Well that worked!

1 Like

Yay I’m glad :slight_smile: