Platform
Resources
Pricing
Sign in
Get started
Benjamin
Workspace
Fork
Public
By
Benjamin
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
form
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML