Behaviour SwRS-MDOKFSTUDIO-FMEDIT-001
A click on a field in edit mode opens its editor in place
When a writer clicks, or presses Enter or Space on, a name or value cell of the properties table in edit mode, the extension SHALL open a field editor inside that cell.
Step 1 of path 1 in StRS-MDOKFSTUDIO-FMEDIT-001: from “The properties table is shown in edit mode” to “A field editor is open”.
Scenarios 7
The situations the tests check; open one to read it.
nominalA click or a key opens the editor
Givenedit mode on and a properties table whose title field is a text field
Whenthe writer clicks the value cell, or focuses it and presses Enter or Space
Thenan editor labelled "Frontmatter title" opens inside that cell
refusalReading mode opens no editor
Givenedit mode off (reading mode)
Whenthe writer clicks a name or value cell of the table
Thenno editor opens and the table is unchanged; a field whose value is a plain number, boolean or null with no schema type carries no edit attribute; in edit mode the cells have tabindex 0, outside it they have none
nominalA plain click on a link value edits the field
Givenedit mode on and a field value that shows a link
Whenthe writer clicks the link without a modifier
Thenthe field editor opens and no navigation happens
boundaryLink clicks that still follow the link
| Input | Outcome |
|---|---|
| Plain click on the link in edit mode | The field editor opens, no navigation |
| Click with Cmd or Ctrl in edit mode | The link is followed |
| Click on the link in reading mode | The link is followed |
refusalField and key editors have no palette or slash menu
Givena text field editor open
Whenthe writer types / or makes a text selection in it
Thenno slash menu opens and no edition palette appears; only the block editors bind the palette and the slash menu
nominalA 460 px preview opens and cancels an editor without page overflow
Givenedit mode on at 460 px with a tall properties table
Whenthe writer clicks the value cell of the status field, types a new value and presses Escape
Thena field editor opens in that cell, then closes on Escape and the cell shows the original value, and the page has no horizontal scroll at any moment
boundaryA tall properties table at 460 px scrolls to both ends
Givenedit mode on at 460 px with a tall properties table
Whenthe writer scrolls the preview to the bottom and back to the top, then the source editor syncs to line 1 while the preview is scrolled down
Thenboth ends of the table are reached, the page has no horizontal scroll, and the preview returns to the top with line 1 visible
Implemented in 3
Tested by 6
Replaces
SwRS-MDOKFSTUDIO-FMEDIT-013A plain click on a link value edits the field superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-065A field editor opens and closes on Escape in a 460 px preview without page overflow superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-066Field and key editors have no palette or slash menu superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-087A tall properties table scrolls to both ends at 460 px and returns to line 1 on source sync superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file