Logo Autocomputing
Call Support

27The Web Editor

The Web Editor is the page that opens when you preview a staged version of a website (26.6): the site itself, running as it will live, with the tools to read it, mark it up, rewrite it, design it and lay it out, and an agent working beside you. Nothing on it is public, and nothing it changes reaches the live site until the version is deployed.

This chapter takes the Web Editor from the top of its page down: opening it, the header, annotations, Edit Copy, Design and its tools, saving, agents, recording, and the notices it gives.

27.1 Opening the Web Editor

There are three ways in:

Note After Gridtop is updated, open an existing preview with Preview on its version, not Open, so that the preview takes up the update.

27.2 The Header

A silver bar runs across the top, with the version beside its name (the bar still says Preview), and its controls in three groups:

The bar tucks itself away, so that the page opens as the site alone; move the pointer near the top edge and it comes back. Right-click the bar for Auto-retract, which turns this on and off. Messages appear in the bar, or at the foot of the page while the bar is away.

While you work, the site's own links and buttons still work, so you can walk the whole site from here. While Annotate, Edit Copy or Design is on, the mode takes the click: links do not follow and forms do not submit. Turning one mode on turns the others off.

27.3 Annotations

Annotate turns the page into something you can mark. Rest the pointer on anything and it is outlined; click it, and a note opens beside it, naming the element and asking What should change here?

Press ESC again to leave Annotate. The count beside Save Annotations As... shows how many notes are waiting.

Tasks from notes. Save Annotations As... lists every note with its page and element, each ticked; untick what you do not want. Task makes a Task of the ticked notes; with an agent in the pane (27.7), Task for names the agent, and the Task appears on your Gridtop joined to it by a line and listed, unchecked, on its INSTR tab. Prompts saves the notes as Prompts instead. Gridtop confirms Saved as Task (or Prompts). From an agent's INSTR tab, Send to Agent... sends a Task into its chat as a green chip, carried with your next message.

27.4 Edit Copy

Edit Copy changes text where it stands. With it on, click a heading, a line or a button, and it becomes editable in place, with Save and Cancel beside it; ENTER saves, ESC puts the text back. Select part of the text and a silver format bar appears above it: bold, italic, underline, strikethrough, superscript, subscript and links, and finer type settings such as weight and spacing, kept as named styles in the site's design rather than written into the page.

Menus hold still. Many sites open a menu when the pointer rests on it or when its button is clicked, and close it again when the pointer leaves, which would put the menu's own words out of reach. While Edit Copy is on, the site's menus hold still: clicking a menu button neither opens nor closes it, and a menu you opened before turning Edit Copy on stays open, so that you can rewrite its items where they stand. Turn Edit Copy off and the menus behave as they always have.

Each save goes into the staged version at once, and the Web Editor reports Saved in and the file's name. Edit Copy finds text wherever the site keeps it: in the page itself, in the site's settings (its name, tagline and contact details, which change everywhere they show), in a template's form texts, and in a template site's database, where it changes the one row that holds the text. A change to the database cannot be undone, and text kept in several rows is refused, with a pointer to the site's back office.

27.5 Design

Design turns the page into a work surface, and opens a pane of tools at the right in Gridtop's own panel style.

Selecting. Rest the pointer on anything and the finest element beneath it is outlined, with its name on a small tab beneath the outline; click to select it, ESC to clear. Select the parent, on the right-click menu, widens the selection.

Selecting several. SHIFT+click adds an element to the selection, and SHIFT+click again takes it away. SHIFT+drag draws a marquee, a box you pull across the page, and selects every element lying wholly inside it. The header counts them (3 selected), and each is outlined with a dashed line. Elements selected together can be lined up and spaced as a group (Align and Distribute, below).

Moving. A selected element carries handles. Before you drag it, it helps to know how a web page is built. A page is laid out much as a letter is typed: each part follows the one before it, top to bottom, and the page's flow is that order. Moving a paragraph in a letter means cutting it from one place and pasting it into another, and the lines around it close up and make room. A page can move its parts the same way, or it can leave the order alone and simply slide a part across, as you would shift a photograph on a pinboard. The Web Editor offers both, under Arrange on the right-click menu, and remembers your choice in this browser:

Sizing. Drag a handle to resize the element (SHIFT keeps its proportions); CTRL+drag a handle, or turn on Free Transform (E), to scale it with its text. Because the same page is seen on a phone and on a wide monitor, a size also needs a rule for how it behaves when the screen changes. Arrange ▸ Width and Arrange ▸ Height set that rule, with the one in force ticked:

Smart Guides show when an edge or centre lines up with another element (green), the page's centre (magenta), or an equal width or height, and the drag snaps to them (ALT: no snap). The arrow keys nudge one pixel, ten with SHIFT. Reset Position and Reset Size put an element back; Set Dimensions... sets its smallest and largest size in two steps; and while the page is narrowed (Screens, below), Reset for This Screen clears what was set for that screen size alone. In a template's section rows, an item's side handles set its width in the row's twelve columns, and dragging it places it beside another item.

Align and Distribute. With two or more elements selected, Arrange ▸ Align lines them up along the group's own outer edge or middle: Left Edges, Centres Across, Right Edges, Top Edges, Centres Down or Bottom Edges. With three or more, Arrange ▸ Distribute spaces them evenly between the outermost two, Across, Equal Gaps or Down, Equal Gaps. Gridtop says Arranged, or Already lined up when there was nothing to do, and the whole arrangement is one step to Undo.

A look stays with its element. Whatever you set in Design, a position, a size, a colour or a shadow, is kept with the element it belongs to. The first time you design an element, Gridtop gives it a permanent name tag in the page's file, invisible to visitors, and files the look under that tag. Add a section above it, move it in flow, or delete its neighbour, and the look goes with it, as a name badge goes with the person wearing it rather than staying with the chair. A Duplicate gets a tag of its own, with a copy of the look. Looks set before this way of keeping them move onto their element's tag the next time you change that element.

The right-click menu offers quick choices, saved at once: Color (its text, background, border or hover background, from the palette, Any colour..., or Theme default); Shape (radius, border, padding); Effects... and Image Effects; Arrange (moving, sizing, aligning and spacing, as above); Structure (Move Up, Move Down, Duplicate, Delete, Go Inside); Create New; Motion graphics; Calculators; and at its foot Adjust in Appearance..., Select the parent and Clear this element's design.

Create New places something new where you right-clicked. Place, at the head of its menu, says where, and keeps your choice: Beside the element, Below it, Before it, or Inside it. The new piece lands exactly there, even on a template page whose parts are made by the site's program rather than written in the page, and it is selected as soon as it appears, ready to work on. The choices are Text, Image, Button..., Link..., a Section, a Layout, Video..., Map..., Web Page... or Embed, a divider or spacer, and form parts (Form, Text Field, Long Text, Email Field, Phone Field, Date, Drop-down, Checkbox, Send Button). Forms are drawn and marked here; their sending is set up on the Web Front's Forms tab (26.8). Motion graphics adds an Earth globe, a countdown, a counter, a ring, a drawn-in logo or a ticker; Calculators, on template sites only, adds a working calculator, from Loan Payment and Mortgage to Break-even and Margin and Markup.

Effects... opens one dialog for every effect on the selected element: the effects listed at the left, each with a tick (shadow, text shadow, glow, hover, picture, rim light, spotlight, and the light effects: gradient, gloss, glint, rays, star, flare, spot), the settings of the one chosen at the right. The page shows each change at once; Cancel puts it back, and OK saves it all as one step.

Pictures. A picture under the pointer shows a small icon at its top right, with Replace From This Computer..., Replace From A:/..., Crop..., Fit, Scale and the image effects; a file dropped on a picture replaces it. Crop shows the whole picture, see-through outside the frame: drag it to place it, drag a corner to size it, then OK (ENTER) or Cancel (ESC). A replaced or cropped picture is saved as a new file; the original stays on the drive.

Screens. The screen button in the header (Wide) shows the site at the width of a Laptop, Tablet or Phone, or any width you drag from the edge beside the page. While the page is narrowed, Design's edits are kept for that size only (tablets, or phones), unless Edits While Narrowed ▸ Every Screen is chosen; a dot on the button says so. Device Aspects... sets the screens the site is made for, larger touch targets for buttons and menu links on touch screens, and whether hover looks show on a tap.

The pane's tools, each with a Live Preview box and an Apply:

Schemes. A colour scheme is a whole palette with a name, and a type scheme is a pair of fonts, one for headings and one for body text, chosen to go together, much as a decorator brings a card of paint colours that suit one another rather than one tin at a time. The SCHEME button in Colors, and the TYPE SCHEME button in Typography, name the scheme the site is using now (Custom when its colours match none). Click it for:

Choosing a scheme applies it to the whole site. Your schemes are kept on your drive, in A:/Agentic Matrix/Schemes/, so they are offered on every site you edit.

Page Value and Page Color. Right-click a knob for Page Value and Color Override. Use Page Value puts the knob back to what the page itself has, and Use Page Color takes the element's colour from the page again. Change Global Value and Change Global Color reach past the one element to the site-wide setting: every corner on the site, a palette colour wherever it is used, or every element of the same kind. The page moves live as you drag; ENTER or a click elsewhere saves, ESC puts it back.

Only what you changed is written.

27.6 Saving, Undo and Restore Points

The Web Editor saves deliberately. Save (CTRL+S) writes a .vsn file, the version's editable files gathered into one save, wherever you choose in the drive picker; Save As... (CTRL+SHIFT+S) names it; Open... (CTRL+O) reads one back. The Save button shows a dot while there are changes since the last save, and hovering it names where that save is.

Behind your saves, restore points are kept as you work: after about every twenty changes, and before every Open or Restore. Restore, on the Save menu, lists them, newest first; opening the Web Editor with unsaved changes offers them in a small Unsaved changes box at the corner of the page.

Drafts. Changes made in a tool's pane but not yet applied (a palette being tried out in Colors, knobs turned in Appearance, fonts chosen in Typography, blocks reordered in Layout) are kept as a draft for each page, a few moments after you stop. If the page reloads, the tab closes, or the computer restarts before you click Apply, the next time you open the Web Editor on that page it puts the draft back where you left it, the element selected and the pane as it was, and says Draft restored. Nothing in a draft reaches the staged version until you apply it; a draft is the work on your desk, not the work in the file.

Undo and Redo follow one timeline (CTRL+Z, CTRL+Y). Changes not yet applied in a tool's pane come first, newest first; then the changes saved to the drive (yours, and an agent's) in the order they landed. Each Undo takes whatever came last, whichever tool or hand it came from, and plays on the page. Opening a save and restoring a point are themselves one step.

27.7 Add Agent: an Agent in the Page

Add Agent opens a picker of the agents on your Gridtop. Choose one, and its own descriptor panel, chat docked, moves into the Web Editor's right pane, exactly as it stands on the grid: its conversation, chips and everything it can do. The × in its header takes it out again. The pane remembers the agents you chose for this site, in this browser.

An agent in the pane is told which site and version it is working on, and which page and element you have selected, so change this heading needs no explaining. It works with its own tools and permissions, and by default at a fast effort (13.7):

27.8 REC: Recording and Replay

REC, at the right of the header, records the Web Editor itself. Its menu:

Recordings and videos keep themselves as they go, as (unfinished) files in the site's Recordings folder, so a crash loses nothing; Stop finishes them under their proper names, a video with its length written in so that players can seek.

27.9 Notices

PHP error: file, line, at the corner of the page, means a staged page could not be shown: it does not parse, and would show nothing at all on the live site. Resting the pointer on the notice shows the parser's words; fix the file (in the Editor, or by an agent), and the page shows again. A page that comes back blank for any other reason says Blank page.

That element has changed since the preview was drawn. Reload the preview and try again. The Web Editor finds each element by its place in the page's file, and the preview you are looking at was drawn from the file as it stood when it loaded. If the file has changed underneath it since (an agent, or you in the Editor, rewrote that part), the Web Editor refuses the change rather than apply it to the wrong element. Reload the page and do it again.

Staged files changed on the drive, by an agent or by you in the Editor, are picked up when the page loads, and while an agent works.