Hello. Does anybody know how to create a panel at the bottom of the editor?
What I have so far
public p: Panel = {
dom: document.getElementById("panel"),
mount: () => {
console.log("panels has been added")
},
}
public f = function (view: EditorView) {
return this.p
}
this.state = EditorState.create({
doc: this.starterCode,
extensions: [showPanel.of(this.f(this.editorView))]
})
this.editorView = new EditorView({
state: this.state,
parent: document.querySelector(".editor")
})
does not work… I have been stuck on this for a while. Any suggestions are appreciated!! Thank you!