Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TABLE-085

The table bar's cell group formats the cell text

When a cell editor is open, the extension SHALL add to the table bar, after a separator, a group named "Cell formatting" holding only the palette buttons allowed in a cell and no mode selector, and apply its buttons, their shortcuts and the cell slash menu to the cell text.

Step 1 of path 1 in StRS-MDOKFSTUDIO-TABLE-015: from “A cell editor is open” to “The cell text is formatted”.

Scenarios 7

The situations the tests check; open one to read it.

nominalCell group
InputOutcome
A cell editor open in GFM mode, the bar inspectedAfter the separator the group holds bold, italic, strikethrough, link, colour, colour code, emoji and key buttons and no block-only button such as heading, quote, table, image or code fence
The same editor in MyST mode, the bar inspectedSub, sup and the key role are offered
nominalA button applies to the cell text
Givenall of the cell text selected and Bold pressed
Whenthe cell text is read
Thenit starts with ** and the editor is still open and focused, and Cmd+Z restores the text; the format was applied as one native edit
WHEN the writer then presses Enter, the cell is saved
nominalCmd or Ctrl with B, I or K
InputOutcome
Text selected in a cell and Cmd+B (Ctrl on other platforms)The text is bold, the default is prevented and the key is stopped
Text selected in a cell and Cmd+KThe link panel opens in the cell
Cmd+I in the cell text boxItalic runs on the cell text and the key stays away from the browser
refusalBlock-only shortcut
InputOutcome
Text in a cell and the shortcut of the TODO action pressedThe cell text is unchanged
Cmd+B in the same cellThe action runs
nominalSlash menu of a cell
InputOutcome
The writer types a slash in a cell editor in MyST modeThe menu lists Bold, Italic, Strikethrough, Colour, Link, Emoji, Key, Subscript, Superscript and Key (MyST), and no list entry, Table, Code block, Quote, Rule, Alert, Admonition, Figure or Image; the chosen command runs through the cell formatting group
A cell whose caret is inside a colour codeColour code is listed too
boundaryRebuilt bar keeps the group
InputOutcome
The editor moved to another cell by a click, rendered againThe bar element is the same and holds the same group element
The editor moved to the next cell by Tab, rendered againThe same bar and the same group are in place
boundaryThe group leaves with the editor
InputOutcome
The editor closed by EscapeNo cell group and no table bar are left
The editor moved to another cellThe group is still there

Implemented in 3

Tested by 4