11. Visual editing (what the client can do)
The editor works like a page builder:
- Items panel (left, docked). It has three tabs:
- Items: the widget library by category (Basic, Layout, Media, Interactive, Content, Site and Advanced), with search. Drag them into the design, where a line shows where they’ll land, or add them with a click. In a package section, the basics (title, text, button, image, spacer, divider, HTML and form) are added as loose items; in a container or between sections, as widgets (see section 13).
- Sections: «New section» (column structures and prebuilt templates that take on the site’s look) and the package’s sections, to drag between others or insert with a click.
- Templates: the sections the client saved for reuse and the global items (see section 7).
- Click any item in the design: the right panel shows only its options, with a header that says what it is (title, text, button, image, list, container…) and three tabs:
- Content: what’s specific to that type of item. The text and HTML tag on titles (H1…H6, useful for SEO); the text and link (with a page finder) on buttons; the image and alt text on images; the list items (opening the one clicked) on repeaters; the layout (flex or grid) on containers.
- Style: only the groups relevant to that item (typography and color on texts; typography, colors, border and padding on buttons; size and border on images…). Everything per device (desktop, tablet, mobile) and in hover state.
- Advanced: margins and padding, position, visibility per device, custom CSS, animation, duplicate, hide, move and delete the item, and the layers panel.
- With no item selected you see the section outline: the list of its items with their current value, to jump straight to each one.
- Texts, links and images in the design that don’t carry
data-bos-editcan also be edited. They’re saved per item and published the same way. - Sections: “Duplicate section” and “Save section as template” in the block toolbar. Templates appear in the items panel and in Patterns.
- Resizable sidebar: drag its left edge (double-click to return to 360 px). The width is remembered.
- Images: a click selects the image even if there’s a layer on top; “Replace image” is in the inspector (also when selecting the box that contains it) and in the toolbar, and a double-click opens the media library. The same goes for background images.
- Forms: when you select a form, “Edit as visual form” opens the form builder (see the “Forms and email” chapter).
- Right-click in the design: opens the BuilderOS menu. From there you can edit, duplicate, move, select the container, add an item after, copy, paste or reset the style (to give one item the look of another), hide and delete items, and duplicate, save as template or delete the section.
Everything is saved in the block itself and published exactly as it looks in the editor.
Three-card interface
When you edit a BuilderOS page, post, template, global item or popup, the editor appears on a warm background with three cards separated by 8 px (10 px on screens of 1024 px or more):
- Left, items panel. A glass panel that floats over the background. At the top is an inverted header (ink in light mode and light in dark mode) with the logo, the sun/moon button and the button to minimize it. Below are the Items, Sections and Templates tabs, with a pill that slides to the active tab (they can also be switched with the arrow keys, Home and End). Next come the pill-shaped search box and the item tiles, which lift on hover and sink when pressed. Minimized, the panel becomes an ink pill in the bottom-left corner.
- Center, canvas. An opaque card with a 24 px radius. At the top is the device bar (Desktop, Tablet and Mobile), with a pill that slides to the chosen device, and on the right the History and View page buttons. Below, you see the client’s site exactly as it is.
- Right, editing panel (inspector). An opaque card. At the top is an inverted header with the item’s icon in a lime circle, the item’s name, the sun/moon button and the button to go back to the section. Below are the item’s path as chips and the Content, Style and Advanced tabs, with a sliding pill. Single-line fields are pills and groups expand with a smooth animation.
Other surfaces:
- Context menu (right-click in the design). It’s glass and grows from the corner nearest the cursor. The title carries the item or section in a chip. It’s operated with the keyboard: arrows, Home, End and Esc.
- Version history. A dense glass modal. While loading it shows an animated skeleton. It fades out when closed.
- Notices. Glass pills centered over the canvas, with a status-colored dot.
- WordPress menus and dropdowns. They also get the glass look.
- Lime halo. When you drop or move a section or an item, a lime halo lasting 0.9 s appears and marks where it landed.
With «Reduce motion» enabled in the system, all animations are instant. With «Reduce transparency», the glass surfaces become solid.
In this chapter
- The canvas is the website at its real widthWith both panels open, the canvas gap measures about 700–900 px and the site would appear with its tablet rules. That’s why BuilderOS lays out the…
- Version historyThe “History” button, above the design (or the ⋮ menu → “Version history”), opens all the page’s saved versions, grouped by day, with author and time:
Editor header
WordPress 7 leaves its black bar above the block editor. With BuilderOS header instead of the WordPress bar (Settings → WordPress Appearance, on by default), that bar disappears and its functions move to the editor’s own header, which moves up 32 px:
- Left: the BuilderOS logo, before the button to return to the list. It goes to BuilderOS Home (to Pages, for anyone who doesn’t administer the site).
- Right, after Publish and the editor options:
- Magnifier: opens the WordPress command palette, same as Ctrl/Cmd + K (with the BuilderOS commands: history, views, Home…).
- Your photo: opens your account: name and email, BuilderOS Home, View website, Profile and photo, the buttons from the WordPress bar and other plugins (Comments with their count, New → Post/Media/Page/User, View page, caches…) and Log out. If there are pending comments or updates, the photo carries a badge with the number. It’s operated with the keyboard: arrows, Esc (focus returns to the photo).
- Fullscreen mode off (editor options): the WordPress side menu returns and the logo moves to the start of the toolbar; there’s no black bar either.
- Distraction free: as always in WordPress, the header hides; the BuilderOS pieces go with it.
- Mobile (≤ 781 px): the logo and photo remain (the magnifier hides: there’s no keyboard shortcut); the account menu opens inside the screen.
- Right-to-left languages: everything is mirrored (logo on the right, photo on the left, menu aligned inward).
- With the setting off, the editor stays as in WordPress (with its bar).
Dark mode
The sun/moon button is in the header of the editing panel and in that of the items panel. It switches between light and dark mode. The preference is saved in the browser and in the user’s profile, and it’s the same as in the BuilderOS panel (if the panel is on «Automatic», the editor follows the system mode). Dark mode only changes the editor’s frame: cards, panels, menus, modals and WordPress controls. The canvas never changes, because it’s the client’s site and is always shown with its own colors.
Dark mode also covers the WordPress pieces inside the editor, which ship with colors designed only for a white background: the inspector for WordPress blocks (group titles like Styles, Typography, Background, Dimensions or Border, the block description, the block styles and the selected row), the color groups and the “no color” swatch, the color picker, the block inserter, the list view, the command palette, the notices, the page panel, the starter patterns modal of a new page, the Publish button while saving and the media library. Block style preview (“Código é poesia” / “Code is poetry”, when hovering over a style): it’s a panel card (dark in dark mode) with the client’s content on its light paper, which is how it will look on the site. The menus, the palette and the notices are almost-opaque glass, so they read well even with a section of vivid colors underneath.
Commands (Ctrl/Cmd + K)
BuilderOS has no shortcut of its own in the editor: it adds its actions to the WordPress command center (Ctrl/Cmd + K). The commands are:
- Version history.
- View page.
- View: Desktop, View: Tablet and View: Mobile.
- Go to BuilderOS Home.
- Open the items panel.
- Switch between light and dark mode.
- «Insert section: …», one for each section of the installed packages. They’re hidden if the user’s permission is «Content only».
Animations
In the Advanced → Animation tab of any item or section:
- Entrance animation: fade in, fade in from the bottom, top, left or right, slide, zoom in, zoom out, flip or focus. Duration, delay and easing (smooth, ease in-out, bounce or linear) are adjustable. It can also repeat every time the item comes back into view.
- Staggered: on the items of a list (cards, posts…), each starts a little after the previous one.
- Scroll effect: parallax, zoom, rotation or fade at the edges, with its intensity (also negative, to reverse the direction).
- Animate on mobile too: it can be turned off for small screens.
- Play: shows the entrance animation in the editor. Scroll effects are seen on the published page.
Animations load only on the pages that use them. If the visitor has “reduce motion” enabled on their system, or has no JavaScript, everything is shown without animating: content is never left hidden.
Editor on mobile
Under 782 px (admin/js/builder-os-editor-mobile.js, admin/css/builder-os-editor-mobile.css, enqueued in Builder_OS_Layout; builder-os-structure.js provides 44 px rows and the .bos-st-grip handle). Nothing changes on desktop and tablet.
- One bottom sheet at a time: Add (items panel, with the «Library» button), Structure, Style or Settings (WordPress sidebar) and the Section library. Opening one closes the previous; it’s dragged by the handle to half height or full screen and closed by swiping down, with «Close» or with Esc; it respects
prefers-reduced-motion. - Bottom bar: Add, Structure, Style (with an item selected) or Settings, Undo, Redo and Save («Saved» when unchanged). The header carries back, title, Preview, Publish and «…» (Page settings, SEO, Save draft). The canvas takes the full width with the Mobile view on open; selecting a block doesn’t open the sidebar by itself.
- Touch: press and hold (canvas or Structure row) opens the context menu; rows are reordered with the handle.
- «Applies to» (header of the Style sheet): «All devices» (default: styles go to Desktop, the base everything inherits, even if the canvas is shown in Mobile), «Mobile only» (Mobile key, with the own-value mark) or a custom breakpoint. It’s remembered for the session (
sessionStorage). API:BuilderOSDesign.setEditDevice()anduseEditDevice(). - For the AI (chapter 25): the editor can be used on mobile; on mobile, styles apply to all devices unless «Mobile only» is chosen in «Applies to». Test:
tests/e2e/e2e-editor-mobile.js(390 × 844, touch).