દસ્તાવેજીકરણ હમણાં માટે માત્ર અંગ્રેજી છે. બાકીની સાઇટ તમારી ભાષાને અનુસરે છે.
Page builder
The visual builder for pages, posts, the header, footer, and templates: layers, multi-select, layouts without CSS, tablet and mobile values, global styles and presets, autosave, revisions, and accessibility checks.
16 મિનિટ વાંચ્યું
Pages, posts, every other content type, the global header, the footer, and templates all open in the same builder. The top bar holds the title, save state, Revisions, Preview, and Publish, and a back button that asks first when there are unsaved changes. Under it, a toolbar shows what you are editing (site-wide parts get a highlighted badge saying changes reach every page that uses them), with undo and redo, Desktop, Tablet, and Mobile widths or any width from 320 to 1920 px, zoom, the light or dark preview, and buttons that hide the block library or the settings panel. Breadcrumbs above the canvas show where the selected block sits.
Builder 2.0
Justflows 0.4.4 rebuilt the builder (Builder 2.0) and 1.1 opened every entry straight into it. The canvas draws core blocks with the page's own renderer, inside the theme's block-content wrapper, and shows the page's real header, template, and footer around it, read-only, so what you see is what visitors get.
Document format
{
"version": 1,
"blocks": [
{
"type": "core.heading",
"props": { "text": "Hello", "level": 2 }
},
{
"type": "core.paragraph",
"props": { "text": "Welcome to the site." }
}
]
}Layout blocks (core.section, core.container, core.group, core.columns, core.column, core.grid) nest children. Columns contain core.column nodes; Grid stores responsive placement on each child. HTML and rich text go through sanitizers in @justflows/blocks (sanitizeHtmlBlock, sanitizeRichText, safe URLs for hrefs and media).
Authoring flow
- 1
Insert
+ Add block and + Add section open a searchable list of every block that fits there, grouped by category, with plugin blocks under From your plugins. Press / on the canvas to open the same list where the next block goes. Patterns are starter trees from the theme, the site, and plugins.
- 2
Edit props
Each block has a schema (text, rich text, number, media, links, and so on). Every block also gets spacing, size, alignment, corners, shadow, background, text and accent colour, opacity, per-instance theme variables, a CSS class, scoped custom CSS, and entrance / hover / press animation — all from the inspector, no CSS required.
- 3
Save and publish
The document is stored on the content row. Public HTML is produced by each block’s
render()plus thecontent.renderfilter.
Layers, selection, and locks
The Layers panel next to Blocks shows the page as a tree. Search finds blocks by name, type, editor label, or text, including inside collapsed branches. Arrow keys move through it; Alt+↑/↓ moves a block among its neighbours, Alt+→ puts it inside the block above, Alt+← moves it out, and Move to… lists every container it may go into. F2 gives a block a name only editors see. Drag-and-drop uses one set of rules everywhere: a zone that cannot take the block is dimmed and says why.
Ctrl/⌘-click adds a block to the selection and Shift-click selects a range, on the canvas and in Layers. Right-click, the ⋯ button, or Shift+F10 opens the block menu: duplicate, copy, cut, paste, delete, group, ungroup, reset style, Save as reusable block, and Save as pattern. Copied blocks paste into another tab with new ids; plain text becomes paragraphs.
Blocks can be locked against moving, removing, or editing. Locks are enforced by the server: a save that changes a locked block is refused with 403 block_locked for anyone without content:locks:manage (administrators and editors have it), in the admin, the Management API, MCP, and revision restores alike.
Layout without CSS
A section, container, group, or columns block has four layouts in its Layout tab: Stack, Row, Column, and Grid (1–12 equal columns), with wrapping, alignment, and a gap on the theme's spacing scale. Rows and grids stack on phones unless you turn that off. A block inside a row can take a share of it (a quarter to the whole row) and fill the free space. A group can render as a section, article, aside, header, footer, or nav element. Drag the on-canvas handles to change padding and minimum height; they snap to the theme's spacing steps. Layouts never reorder blocks for screen readers, and the builder warns when grid placement does.
Tablet and mobile
The Tablet and Mobile previews apply the theme's own responsive rules to the canvas width, not the browser window. A block's Responsive tab shows, for each setting, the value in effect and where it comes from, and lets you set a different value for tablet (1024 px and narrower) or mobile (600 px and narrower): spacing, width, maximum and minimum size, text alignment and size, grid span, position and order, and a row's direction, wrapping, gap, and columns. Mobile inherits from tablet, tablet from desktop. The tab warns about hidden content, reading order that differs from the screen, tiny text, and content wider than the screen.
Global styles and style presets
The Styles tab edits the theme's colours, dark-mode colours, typography, headings, spacing, corners, shadows, and widths next to the page they affect. Each setting says whether it is the theme's value or one changed for this site, and resets with one click. Changes are a theme draft until you publish.
Style presets are named sets of spacing, size, corners, shadows, and colours. In a block's Style tab, pick a preset, save the block's values as a new one, or detach and keep the values. Changing a preset changes every block that uses it, on every page; the Styles tab shows where each is used before you delete it. Each style value in the inspector names its source (this block, tablet or mobile, the preset, the template, or the theme) and resets only that layer. APIs: /api/style-presets and the Management API's /style-presets.
Drafts, autosave, and conflicts
A few seconds after you stop editing, the draft saves itself; autosave never publishes. Every edit is also kept in the browser until the server has it, so a reload, a crashed tab, or an expired session offers to restore your changes. When someone else changed the page in the meantime, the builder stops saving, says who, and lets you load the latest version (keeping yours as a copy) or save over it after a confirmation. The header, footer, and templates carry a revision number and refuse stale saves with 409 document_conflict.
Revisions
Revisions in the top bar lists earlier versions of the page, header, footer, or a template with date and author, and shows what restoring one would add, remove, change, or move. A page restores as its draft; the live page changes only when you publish. Saves of the header library, footer, widget areas, and template overrides keep the 30 newest versions (/api/document-history).
Accessibility checks
The Checks tab lists problems as you edit: links and buttons without text, empty headings, low contrast from builder colours, images without alt text, skipped heading levels, extra level-1 headings, reading order that differs from the screen, icons without a label, and tables without a header row. Selecting one opens the block and the field that fixes it. The same checks are checkAccessibility in @justflows/blocks, GET /api/manage/v1/content/{id}/accessibility, and the assistant's content_accessibility_check. They help but do not prove a page is accessible.
Every block can be reached with Tab and selected with Enter or Space; press ? for every keyboard path. The canvas follows the page's language and writing direction, so right-to-left content reads as it will be published.
Blocks that cannot be shown
A block whose plugin or theme is switched off is kept exactly as stored and offers recovery in its settings: what is stored, Try again, copy or download its data, Replace with another block (keeping its id and matching settings), or Remove. A plugin block that fails or takes longer than 8 seconds to preview shows its state with Try again; on public pages a plugin block has 1 second to render before it is left out and listed under Health → Slow blocks. Long pages stay fast: one edit redraws only that block, off-screen sections are not painted, and plugin previews are fetched 50 at a time.
Inline formats, images, footnotes, and math
The inline toolbar on paragraph and quote blocks has bold, italic, links, strikethrough, and an image button that uploads a file, takes a URL, or picks from the media library. More formats adds inline code, highlight, subscript and superscript, keyboard input, language markup, footnotes, and inline math.
- Footnotes are numbered in document order and collected into a footnotes list at the end of the published page.
- Math is written in LaTeX and rendered with KaTeX, self-hosted, so the editor canvas and the public page look the same and no external request is made.
Per-block styling without CSS
Each block shows only the controls that apply to it. See Block settings.
The Layout panel styles any block instance directly. background, textColor, and accent take validated colours; transparent or none clears a background so a themed band shows through. opacity is a 0–100% slider. All of these write onto the block's own root element, so they beat the theme's own rules for that block.
vars overrides theme CSS custom properties for one block instance. A blockControls map in the active theme's manifest promotes chosen variables to first-class inspector fields per block type — a dropdown, slider, or colour picker — with an All theme variables section covering the rest. GET /api/themes/style-tokens serves that list (name, current value, range bounds, select presets) and also powers the variable reference in the Custom CSS panel.
Live theme preview
The canvas links the active theme's stylesheet, scoped to the editor surface: GET /theme.css?scope=<selector> runs every rule through scopeThemeCss, which confines each selector to one wrapper class (:root, html, and body become the wrapper; @keyframes stay global). Block previews emit the real jf-* markup, so the builder renders with the actual theme styling.
A Light/Dark switch in the canvas toolbar previews the site in either scheme with the theme's own palette, and selection highlights follow it so text stays readable. The builder's side panels, block library, and pattern previews follow the admin's own light or dark mode.
Reusable blocks, JSON, and history
- Reusable blocks — save a block to the library and insert linked references, shown on the canvas under a Linked label. Edit the source opens it in the builder as its own document: saving makes a draft only previews show, and Publish first says how many places will change. Detach replaces the link with an independent copy. A reusable block cannot contain itself or nest more than four deep.
- Block JSON — select a block to edit its type, version, props, and children directly. This is also the escape hatch for props the inspector does not expose.
- Page JSON — deselect every block to edit the complete page document, including page-header configuration, without re-importing or changing block ids.
- Undo and redo — use the toolbar or
⌘Z/⇧⌘Z. Rapid edits are grouped while text fields retain their native undo history.
Block pattern library
The Insert panel has a categorized pattern library with theme-width previews and editable insertion: six accessible token-driven section starters, plus local site patterns and optionally synced ones, with locale variants and RTL-aware UI. Patterns import and export as validated JSON, themes register them through the theme SDK, and plugins contribute them at runtime with ctx.patterns.register() — automatically removed when the plugin deactivates. Every non-core block a pattern uses must be listed in requiresBlockTypes, so the builder shows an installation notice instead of importing a broken design. A bounded, sanitized opt-in marketplace directory surfaces community patterns. Required-block checking runs before a template is saved.
Page headers and content-aware editing
Headers are a library, not always-on chrome. Theme builder → Header holds named headers with one marked the site default; every page renders that default unless it points at another named header or *None*. Pick a page's header from the dropdown in the page builder — the choice saves on its own, immediately. Clicking the header, template, or footer around the canvas never changes it: it says where the part comes from (your override, a draft, the theme, or a plugin) and opens the theme builder on it. The Site tab lists the header, template, and footer with their sources and the template order for this page. Posts and error pages render the site-default header. The light/dark control, language switcher, and login/register links are site-chrome blocks you can drop into any header.
Posts and other non-page content use the same visual builder, but the library hides whole-page patterns and site-chrome controls that do not belong inside an article. URL controls can search published pages and posts, and Image uses the Media Library picker.
Custom CSS stays scoped
Use & for the selected block or write descendant selectors. Imports and JavaScript URLs are rejected, and CSS is scoped so it cannot style the rest of the page. Media queries and keyframes are supported.
Tip
The full catalogue of shipped types is on Core blocks. Plugins can register more types through the block registry.