<
From version < 265.1 >
edited by Silvia Macovei
on 2019/02/19 14:03
To version < 266.1 >
edited by Silvia Macovei
on 2019/02/19 14:03
>
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,20 +1,62 @@
1 -{{extensionToc/}}
1 +{{toc/}}
2 2  
3 3  This is a simple application that integrates ##jgraph/draw.io## in XWiki, adding support for editing and viewing diagrams. Each diagram is stored in a wiki page. It doesn't require any external services in order to work properly.
4 4  
5 -= Examples =
5 += Creating a new diagram =
6 6  
7 -{{gallery}}
8 -image:editDiagram.png
9 -image:editDiagramFullScreen.png
10 -image:viewDiagram.png
11 -image:viewDiagramMacro.png
12 -{{/gallery}}
7 +To create a new diagram click on ##Diagrams## in the Applications panel.
13 13  
14 -= Tips =
9 +{{image reference="DiagramPanel.png" width="200"/}}
15 15  
16 -If you wish to display a generated diagram on another page you should use the Diagram Macro.
11 +Click on the ##Create## button, fill in the diagram name and select the ##Diagram## template, then click ##Create## again.
17 17  
13 +{{image reference="DiagramsHome.png" width="920"/}}
14 +
15 +{{image reference="CreateDiagram.png" width="920"/}}
16 +
17 +Use the editor to create your diagram, then click ##Save & View##.
18 +
19 +{{image reference="DiagramEdit.png" width="920"/}}
20 +
21 +{{image reference="DiagramView.png" width="920"/}}
22 +
23 += Including a diagram in another wiki page =
24 +
25 +== Using the WYSIWYG editor ==
26 +
27 +If you wish to display an existing diagram on another page you should use the Diagram Macro. Go to the wiki page where you'd like to include the diagram. In edit mode, click on the ##XWiki Macro## icon.
28 +
29 +{{image reference="DiagramMacro.png" width="670"/}}
30 +
31 +Select the Diagram Macro from the list of macros.
32 +
33 +{{image reference="AddDiagramMacro.png" width="620"/}}
34 +
35 +Fill in the path to the diagram you wish to include and click ##Submit##.
36 +
37 +{{image reference="EditDiagramMacro.png" width="620"/}}
38 +
39 +You will be able to see the included diagram both in edit mode and in view mode.
40 +
41 +{{image reference="DiagramMacroEditMode" width="670"/}}
42 +//Included diagram in edit mode.//
43 +
44 +{{image reference="DiagramMacroViewMode" width="920"/}}
45 +//Included diagram in view mode.//
46 +
47 +== Using the Wiki editor ==
48 +
49 +If you're more inclined to write code directly, you can write the following directly in wiki mode:
50 +
18 18  {{code language="none"}}
19 19  {{diagram reference="Path.To.DiagramPage" cached="true" /}}
20 20  {{/code}}
54 +
55 += A few diagram examples =
56 +
57 +{{gallery}}
58 +image:editDiagram.png
59 +image:editDiagramFullScreen.png
60 +image:viewDiagram.png
61 +image:viewDiagramMacro.png
62 +{{/gallery}}
XWiki SAS Copyright © 2024