Appearance
Top bar modification
The Top Bar is the editor's main control strip, and it can be trimmed down to selected buttons or removed entirely. It holds Save, Undo/Redo, the preview toggles, and more. For a fully branded or embedded experience, the whole bar can be replaced with your own interface.

Remove the Top Bar
To build your own interface, remove the entire default Top Bar:
ts
removeTopBar: true, // to display, set to false or skipOnce removed, saving and closing are your application's responsibility, handled through our APIs.
Hide specific Top Bar elements
To keep the Top Bar but hide some of its buttons, list them in the hideTopbarControls array — everything not listed stays visible. The option has the same name and semantics as in the Landing Page and Image editors. The default value is [].
ts
hideTopbarControls: [
"undoRedo", // hides Undo/Redo button
"save", // hides Save button
"saveAndClose", // hides Save & Close button
"changePreview", // hides Change preview button
"previewSize", // hides Toggle mobile/desktop preview button
"previewTestMail", // hides Send test email button
"changeLanguage", // hides Multilingual dropdown
"translate" // hides Translate button
],If hideTopbarControls is not set or is an empty array [], all elements are shown.
An element that is not hidden may still carry its own conditions to appear. The Translate button needs AI enabled on your account and disableAiAssistant left unset, and it is hidden while Multilingual Templates is active, where the language dropdown takes over instead. Values outside the list above are ignored silently, so a typo shows up as a still-visible button rather than an error.
Breaking change
hideTopbarControls replaces the former topBarOptions allowlist, which listed the elements to show. topBarOptions is no longer supported — move your integration to hideTopbarControls and invert the list.
Show Save & Close as a separate button
When both save and saveAndClose are visible, Save & Close sits in the … menu of the Save button by default. If your users tend to overlook it there, render the two as standalone buttons next to each other with saveAndCloseButton:
ts
saveAndCloseButton: "separate", // "dropdown" (default) | "separate"The option only matters while both buttons are visible; hide one via hideTopbarControls and the remaining button always renders on its own.
Additional Window Bar

Alongside the Top Bar sits an optional Window Bar, enabled by the windowBar array:
fullscreen- Toggles fullscreen mode for distraction-free editingclose- Closes the editor and triggers theonEditorClosecallback
ts
windowBar: [
"fullscreen", // Toggles fullscreen mode for distraction-free editing
"close" // Closes the editor and triggers the onEditorClose callback
],The Window Bar also carries the template name. The rename pencil from renameTemplate and the active members badge sit next to it. The bar appears only when windowBar lists at least one button, so without it the name, the pencil, and the badge are not shown either.
The close action needs a matching callback:
ts
const editor = TopolEmailEditor({
config: TOPOL_OPTIONS,
onEditorClose: () => {
// Your custom logic for closing the editor
}
});onEditorClose receives no arguments, and closing does not save first. Save the template from your own handler if the work should be kept.
INFO
Fullscreen relies on the browser's Fullscreen API. Where that API is unavailable, the button renders but does nothing.
