Wiki-Quellcode von DiagramEditSheet
Version 1.1 von Mike Schneider am 2025/12/30 10:37
Verstecke letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{velocity}} |
| 2 | {{html clean="false"}} | ||
| 3 | #if ($doc.getObject('Diagram.DiagramClass')) | ||
| 4 | ## Disable the keyboard shortcuts because they prevent the user from typing text inside the diagram (the diagram | ||
| 5 | ## editor doesn't use standard text fields for entering the labels for the various shapes the diagram is made of) | ||
| 6 | #set ($keyboardShortcutsEnabled = false) | ||
| 7 | #set ($discard = $xwiki.ssx.use('Diagram.DiagramEditSheet')) | ||
| 8 | #set ($discard = $xwiki.jsx.use('Diagram.DiagramEditSheet')) | ||
| 9 | <div class="diagram-editor loading"> | ||
| 10 | <input class="diagram-content" type="hidden" name="content" value="$escapetool.xml($tdoc.content)" /> | ||
| 11 | <input class="diagram-svg" type="hidden" name="Diagram.DiagramClass_0_svg" | ||
| 12 | value="$!escapetool.xml($doc.getValue('svg'))" /> | ||
| 13 | </div> | ||
| 14 | #end | ||
| 15 | {{/html}} | ||
| 16 | {{/velocity}} |