Public
Edited
Jan 3, 2024
Insert cell
Insert cell
Insert cell
form = html`
<form style="padding-bottom: 12px;">
<input id="trixInput" value="Editor content goes here" type="hidden" name="content">
<trix-editor input="trixInput" style="min-height: auto;"></trix-editor>
</form>
`
Insert cell
{
const element = form.querySelector("trix-editor");
element.toolbarElement.style = "display: none;";
}
Insert cell
{
const element = form.querySelector("trix-editor");
element.editor.setSelectedRange([0, 0]);
element.editor.insertHTML("<strong>Hello</strong>");
return element.editor;
}
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more