# Editor modes

> What your users can do in a session, set per session.

Each session names one mode. Modes are presets of the same editor, so the look stays the same.

| Mode | For | What the user can do |
|---|---|---|
| `design` | Making designs | Everything: pages, layers, text, images, video, uploads, downloads |
| `fill` | Filling in a template you made | Only its fields, in a panel beside the locked layout |
| `view` | Previews and approvals in your app | Look and download; nothing changes |

`photo`, a single-image mode with crop, filters and background removal, comes later.

<Screenshot src="/docs/1-editor-view-only.webp" original="/docs/raw/1-editor-view-only.png" alt="The editor in view mode: a Lisbon travel day card shown full size with download, and no tools or panels to change it" />

## Fill mode and fields

A **field** is an element your team marked as fillable: select a text or an image in the dashboard's template editor and turn on **Fillable field**. Its field id (say `headline`) labels it in fill sessions.

In a `fill` session the canvas is locked and a **Fill in** panel lists the template's fields: a box per text, a Replace button per image. The first change saves the user's own copy of the template; your template never changes.

```json
{ "user": { "id": "user_42" }, "mode": "fill", "template": "tpl_th8Q0s8NZp3" }
```

## Starting from your templates

In `design` and `fill` sessions the editor has a **Templates** picker: the user's own designs, your templates and the library templates you picked, in tabs. It opens as a side panel or, if you choose **Full page** under **Customize › Features**, as a gallery that fills the editor before your users start. Turn the panel off there if your app has its own gallery.

Three choices under **Templates panel** in Customize › Features, each also settable per session (`templatePicker` when you [open a session](/docs/api-reference/sessions-create)) or by your page (`Muzekit.mount`, see [The SDK](/docs/embed-sdk#options)):

| Choice | Values |
|---|---|
| `layout` | `panel` (side panel, the default) or `page` (full-page gallery) |
| `open` | `blank` (when the editor starts without a design and there are templates, the default), `always` (every launch) or `never` (only from the Templates button or `editor.openTemplates()`) |
| `tab` | `auto` (the first tab with something in it, the default), `mine` (Your designs) or `templates` |

## Turning parts of the editor off

**Customize › Features** in the dashboard chooses what your users get, in groups:

<Screenshot src="/docs/1-customize-features.webp" original="/docs/raw/1-customize-features.png" alt="Customize, Features: switches for the insert toolbar and each tool, canvas size, smart resize and keyboard shortcuts, with a live preview of the editor your users get" />

| Group | Switches |
|---|---|
| Tools | Insert toolbar (and each tool in it: text, images, video, shapes), changing the canvas size, smart resize, keyboard shortcuts |
| Panels | Properties panel, pages (and the most pages a design can have), video timeline, films, safe-zone guides, Templates panel, layout switch, light and dark mode, language switch |
| Images and media | Uploads, insert from a link, stock photos and videos, element library, saved colors |
| Downloads and sharing | Downloads and their formats (PNG, JPG, WEBP, AVIF, PDF, HTML), video downloads and their formats (MP4, WEBM, GIF, MOV), share links |
| AI | Remove background, AI images, voiceover and sound, auto captions, translate, AI design agent |
| Developer options | Fields and API: marking layers as fields, the API tab and code examples |

Your team always has the whole editor in the dashboard. Modes narrow it further.

Your server can change any switch for one session: pass `features` (and `formats`, `videoFormats`) when you [open a session](/docs/api-reference/sessions-create), for example a free user without stock or a pro user with AI images. Switches that cost or store something (uploads, stock, share links, video downloads and AI) are checked by Muzekit's servers too, not only hidden.

Your page can also turn switches off when it mounts the editor (`features: { stock: false }`, `formats: ["png"]` in `Muzekit.mount`). It can only narrow what the session allows: a switch the session has off stays off. For a limit your users must not get around, set it on the session from your server.

Features that spend money are off for your end users until you turn them on:

| Feature | Uses |
|---|---|
| Video downloads | API credits, 1 a second |
| Remove background | 1 AI credit an image |
| AI images | 2 AI credits an image |
| AI voiceover and sound | 1 AI credit per 10 seconds, premium voices 2 |
| Auto captions | No credits |
| Translate | 1 AI credit per 100 words |
| AI design agent | By what each message costs to run, at least 1 AI credit. A short edit usually costs 2 to 5; a whole new design more. |

**AI design agent** adds an AI button to the top bar: your users describe a design or a change, and the agent edits the canvas for them. A message costs what it took to run (see the table above), and one message stops after 40 steps.

**Video downloads** starts off: a video page renders on Muzekit's servers and spends your API credits (1 a second of video), so your users only get it when you turn it on. Pick the formats they get (MP4 by default; WEBM, GIF and MOV too), each its own button in the download menu. Members of your team always have every format. Image and PDF downloads are made in your user's browser and never use credits.

## Design tab, fonts, language and labels

More under **Customize** (the Design tab on **Features**, the rest on **Text and buttons**), each also settable for one session when you [open it](/docs/api-reference/sessions-create):

| Setting | What it does | Session field |
|---|---|---|
| Design tab | Hide sections your users see when a layer is selected: align, position, appearance, typography, fill, media, video, waveform, border, shadow, effects, stacking, repeat, and the Animate tab | `inspector: ["shadow", "animate"]` |
| Fonts | `all` (brand fonts, uploads and every Google font) or `brand` (brand kit fonts and the design's own fonts only). Uploading fonts follows Uploads. | `fonts` |
| Most pages | A design can't grow past this many pages | `maxPages` |
| Language | English, Deutsch, Español, Français, Português, Русский, Ελληνικά. The session's `locale` (or the user's) wins. | `locale` |
| Labels | Your own words for buttons and tabs, e.g. `{ "muzekit.templates": "Designs", "downloads.download": "Export" }`. Any of the editor's translation keys works. | `labels` (up to 20) |

## Locking layers

In the dashboard editor, a layer's menu has **Lock for users**. Your users then can't select, move, edit, hide, unlock or delete it, in their own copies too, and a save that changes it through the API is refused (`layer_locked`). Your team can still change it; **Let users edit** removes the lock.

## Buttons of your own

Up to three buttons in the editor's top bar (Customize › Text and buttons › Buttons, or `buttons` on the session). A click sends your page the SDK's `action` event:

```js
editor.on("action", (e) => {
  // { button: "send-to-crm", template: "tpl_…", page: 1, format: "png", mimeType: "image/png", base64: "…" }
});
```

Pick what a button sends: just the event, or the current page as a PNG or PDF. Relabel or hide one from your page with `editor.setButtons({ "send-to-crm": { label: "Sent", visible: false } })`. Your team doesn't see them in the dashboard.
