Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-DIAG-127

A click on a picture opens its source editor

When the writer clicks an svg picture in edit mode, the preview SHALL open the source editor of the block that holds it, as it does for a Mermaid diagram.

Step 3 of path 2 in StRS-MDOKFSTUDIO-DIAG-015: from “The writer clicks the picture in edit mode” to “”.

Scenarios 2

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

nominalA click opens the editor
Givenedit mode on and a page with an svg picture
Whenthe writer clicks the picture
Thenthe source editor of the block that holds it opens over the figure, with the lines of the fence or of the raw svg
boundaryThe picture is a mapped block
Givenan svg fence or a raw svg block
Whenthe preview renders it
Thenits figure carries data-line and data-end-line, which is what the click uses

Implemented in 1

Tested by 2