Localess
AnalogJS

Visual Editor

Live editing with the Localess Visual Editor in an AnalogJS app — enableSync, ll-document, and sync events.

Enabling live editing

Set enableSync: true in provideLocaless(), as in Setup. Inside the Visual Editor iframe, <ll-document> then applies input and change edits to the rendered page live — no extra wiring.

To react to editor events yourself, inject LocalessSyncService and use onChange() or on() — see the Angular Visual Editor page.

Static builds

Live editing needs Angular running in the browser, and prerendered pages hydrate into a full Angular app — so sync works in static builds too, as long as enableSync stays on. The analog-static playground keeps it on. Point the Visual Editor's preview environment at the deployed site — see Visual Editor setup.

Events

EventWhen
inputA field value changed — every keystroke (real-time preview)
changeBlocks added, removed, duplicated or reordered — and once when the preview connects, with the current content
saveContent saved
publishContent published
unpublishContent unpublished
pongEditor heartbeat response
enterSchemaEditor cursor enters a schema block
hoverSchemaEditor cursor hovers over a schema block
leaveSchemaEditor cursor leaves a schema block

On this page