Rich text editor, full toolbar
A contentEditable field that saves clean HTML. Use it for long copy that needs structure. The toolbar has bold, italic, underline, text styles, lists, links, emoji, undo and clear formatting, plus an HTML source view and full screen. Word count, reading time and unsaved-changes status sit underneath, and the preview beside it shows the saved HTML as it will render.
Sculpted Shoulder Blazer
A blazer built in Maine from grain de poudre wool. It weighs just 13 ounces and keeps you warm on a cold platform at seven in the morning.
- Built by Hollis Atelier in coastal Maine
- Horn buttons, ribbed cuffs, two pockets
- Pairs with the Cat-Eye Sunglasses and the Bar Loafers
The one our customers reach for when a coat is too much and a shirt too little.
0 words0 charactersUnder a minute to read
Saved
Show code
<div class="fe-toolbar" role="toolbar" aria-label="Formatting">
<button class="fe-tool" data-fe-cmd="bold" aria-pressed="false" aria-label="Bold">…</button>
<select class="fe-toolbar-select" data-fe-block>…</select>
</div>
<div class="fe-editor-body" contenteditable="true" role="textbox"
aria-multiline="true" aria-label="Product description">…</div>
// Arrow keys move along the toolbar, one Tab stop for the whole row.
document.execCommand('formatBlock', false, 'h3');