No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Drawio}} | {{DISPLAYTITLE:Drawio}} | ||
'''Drawio''' offers extensive drawing possibilities for | '''Drawio''' offers extensive drawing possibilities for flowcharts, infographics and other visualizations on a wiki page. Descriptive graphics like process chains or decision trees can be constructed directly on a wiki page. | ||
==Embedding the Drawio editor== | ==Embedding the Drawio editor== | ||
'''To insert a drawing in the [[Manual:Extension/VisualEditor|visual editor]]:''' | '''To insert a drawing in the [[Manual:Extension/VisualEditor|visual editor]]:''' | ||
| Line 12: | Line 12: | ||
##'''Image description:''' Alternative image text for screenreaders. It is not displayed on the page in view mode. | ##'''Image description:''' Alternative image text for screenreaders. It is not displayed on the page in view mode. | ||
##'''Image alignment:''' Horizontal alignment of the diagram in the page content area. | ##'''Image alignment:''' Horizontal alignment of the diagram in the page content area. | ||
#'''Click''' ''Insert.'' This inserts the <code><nowiki><drawio></nowiki></code>-tag in your page. | #'''Click''' ''Insert.'' This inserts the <code><nowiki><drawio></nowiki></code>-tag in your page.[[File:Manual:drawio inspector.png|alt="Insert" dialog window for an org chart|center|thumb|259x259px|Drawio "insert"-dialog window]] | ||
#'''Save''' the page. | #'''Save''' the page. | ||
The Drawio editor is now available on the page. | The Drawio editor is now available on the page. | ||
| Line 24: | Line 24: | ||
#'''Click''' ''Save'' in the Drawio window to save your drawing. | #'''Click''' ''Save'' in the Drawio window to save your drawing. | ||
#'''Click''' ''Exit'' next to the ''Save'' button to close the editor. | #'''Click''' ''Exit'' next to the ''Save'' button to close the editor. | ||
Starting with BlueSpice {{Bsvs|bsvFrom=5.2.2}}, the drawio editor is loaded with the "minimal" theme. A different theme can only be defined in source edit mode of the page. Supported themes are: <code>minimal</code>, <code>classic</code>, <code>dark</code>: | |||
<nowiki><drawio filename="Org chart" editmode="inline" theme="classic" alignment="center" alt="Tree view of all departments with current roles" /></nowiki> | |||
=== Adding links to shapes === | === Adding links to shapes === | ||
| Line 30: | Line 33: | ||
# '''Right-click''' to open the shape menu. | # '''Right-click''' to open the shape menu. | ||
# '''Click''' Edit Link.[[File:DrawioEditor shape menu.png|alt=Shape menu|center|thumb|650x650px|Shape menu]] | # '''Click''' Edit Link.[[File:DrawioEditor shape menu.png|alt=Shape menu|center|thumb|650x650px|Shape menu]] | ||
# '''Provide''' the | # '''Provide''' the path to the page. <br />For internal wiki pages, the path usually starts with <code>/wiki/</code>, for example: <code>/wiki/Manual:Extension/DrawioEditor</code>. <br />'''Note:''' The displayed dropdown menu to select pages currently has no function in BlueSpice. | ||
# '''Click''' ''Apply''. | # '''Click''' ''Apply''. | ||
# '''Repeat''' steps 1-4 for other shapes in the diagram. | # '''Repeat''' steps 1-4 for other shapes in the diagram. | ||
| Line 36: | Line 39: | ||
# '''Click''' ''Exit'' to close the editor. | # '''Click''' ''Exit'' to close the editor. | ||
If you don't see the changes yet, click F5 on your keyboard to refresh the page. | If you don't see the changes yet, click <code>F5</code> on your keyboard to refresh the page. | ||
=== Remove auto-resizing auf Drawio images (PNG only) | === Remove auto-resizing auf Drawio images (PNG only) === | ||
The following information only applies to Drawio diagrams that are embedded as PNG. | The following information only applies to Drawio diagrams that are embedded as PNG. {{Bsvs|bsvTo=5.1}} | ||
{{Textbox|boxtype=important|header=Avoid auto-resizing of linked shapes:|text=By default, drawio images are resized to always fit into the content area. | {{Textbox|boxtype=important|header=Avoid auto-resizing of linked shapes:|text=By default, drawio images are resized to always fit into the content area. | ||
| Line 84: | Line 87: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==PNG and SVG Format | ==PNG and SVG Format== | ||
Up to BlueSpice 5.1, Drawio diagrams were always saved and previewed in PNG format. | Up to BlueSpice 5.1, Drawio diagrams were always saved and previewed in PNG format. | ||
Starting with BlueSpice 5.1.1, newly created diagrams are saved and previewed in SVG format. Along with the diagram, a link to the versioning page is also generated | Starting with BlueSpice {{Bsvs|bsvFrom=5.1.1}}, newly created diagrams are saved and previewed in SVG format. Along with the diagram, a "Details" link to the versioning page is also generated. | ||
== Drawio diagrams in table cells == | == Drawio diagrams in table cells == | ||
| Line 110: | Line 108: | ||
==Configuration == | ==Configuration == | ||
Wiki admins can configure the following settings in the [[Manual:Extension/BlueSpiceConfigManager|Configuration manager]]: | |||
{{#dpl:title=Manual:Extension/BlueSpiceConfigManager|include=#DrawioEditor}} | {{#dpl:title=Manual:Extension/BlueSpiceConfigManager|include=#DrawioEditor}} | ||
Revision as of 16:03, 26 February 2026
Drawio offers extensive drawing possibilities for flowcharts, infographics and other visualizations on a wiki page. Descriptive graphics like process chains or decision trees can be constructed directly on a wiki page.
Embedding the Drawio editor
To insert a drawing in the visual editor:
- Create or choose a page where you want to insert a drawing.
- Open Content droplet menu from the editor toolbar.

Diagram Content Droplet - Choose diagram from the list of content droplets.
- Click Insert. This opens a dialog box. The following properties can be set:
- Name: Name of the drawio diagram is used for the image name that stores the diagram in the wiki.
- Edit mode v5.2+: Fullscreen view opens the drawio editor in the entire browser window, Page view shows the drawio editor in the page content area.
- Image description: Alternative image text for screenreaders. It is not displayed on the page in view mode.
- Image alignment: Horizontal alignment of the diagram in the page content area.
- Click Insert. This inserts the
<drawio>-tag in your page.
Drawio "insert"-dialog window - Save the page.
The Drawio editor is now available on the page.
![Drawio placeholder and [Edit] link](/w/nsfr_img_auth.php/thumb/e/ef/DrawioEditor_placeholder.png/600px-DrawioEditor_placeholder.png)
Editing the diagram
To edit the diagram:
- Click Edit on the saved page next to the Drawio placeholder or your already saved diagram.

the open Drawio editor - Add any needed shapes to your diagram.
- Click Save in the Drawio window to save your drawing.
- Click Exit next to the Save button to close the editor.
Starting with BlueSpice v5.2.2+, the drawio editor is loaded with the "minimal" theme. A different theme can only be defined in source edit mode of the page. Supported themes are: minimal, classic, dark:
<drawio filename="Org chart" editmode="inline" theme="classic" alignment="center" alt="Tree view of all departments with current roles" />
Adding links to shapes
To add a link to a shape:
- Right-click to open the shape menu.
- Click Edit Link.

Shape menu - Provide the path to the page.
For internal wiki pages, the path usually starts with/wiki/, for example:/wiki/Manual:Extension/DrawioEditor.
Note: The displayed dropdown menu to select pages currently has no function in BlueSpice. - Click Apply.
- Repeat steps 1-4 for other shapes in the diagram.
- Click Save.
- Click Exit to close the editor.
If you don't see the changes yet, click F5 on your keyboard to refresh the page.
Remove auto-resizing auf Drawio images (PNG only)
The following information only applies to Drawio diagrams that are embedded as PNG. -v5.1
By default, drawio images are resized to always fit into the content area.
Since the links are implemented as map coordinates, the png image cannot be resized without breaking the link boundaries. To avoid this, you can disable automatic resizing of your drawio images with the following css.Add the following rules to MediaWiki:Common.css
/*Drawio png - do not auto-resize preview images when links are added directly to the shapes */
div[id*=drawio-img-box] {
overflow-x:scroll
}
/*Drawio png - do not auto-resize preview images when links are created as image maps from file description page */
div[id*=drawio-img-box] img {
height: initial;
max-width: initial;
width: initial;
}This will remove the auto-resizing behavior from all Drawio preview images.
To apply this styling to only some Drawio images, you could add a wrapper to these images in source editing mode. For example:
<div class="drawio-linked">
<drawio filename="processmap" alt="Processmap showing the management, core, and supporting processes ">
</drawio>
</div>In this case, do not add the above styles to your Common.css, but use these rules instead:
/*Drawio png - do not auto-resize drawio diagrams that are wrapped in a container with class drawio-linked */
.drawio-linked {
overflow-x:scroll
}
.drawio-linked img {
height: initial!important;
max-width: initial!important;
width: initial!important;
}PNG and SVG Format
Up to BlueSpice 5.1, Drawio diagrams were always saved and previewed in PNG format.
Starting with BlueSpice v5.1.1+, newly created diagrams are saved and previewed in SVG format. Along with the diagram, a "Details" link to the versioning page is also generated.
Drawio diagrams in table cells
It is not recommended to maintain Drawio diagrams in table cells since the editing experience and the display in PDF documents can cause issues. An alternative is to Create the Drawio file on a separate page and then insert the image file with proper dimensions in any table cell in the wiki. If you decide to create Drawio files directly in a table cell, you can control the sizing in PDF exports by adding the following CSS to MediaWiki:Common.css:
/** ERM42590*/
.pdfcreator-type-page .drawio-table-test img {
max-width: 10cm !important;
}
Import of existing diagrams
Visio diagrams

You can import files with the extension .vsdx directly into the Drawio editor and edit them further. To do this, create a diagram on a wiki page. In the Drawio editor, choose File> Import From> Device. You can then edit the imported diagram.
Configuration
Wiki admins can configure the following settings in the Configuration manager:
Available starting at version v5.1.4+.
- Backend URL: Allows to change the Drawio editor to an external URL. The local default URL is
https://<wikidomain>/_diagram/.
- Edit Mode: The default setting for the Drawio tag included on pages. This setting can be overridden for each diagram on the wiki page.
- Page view: Displays the Drawio editor in the content area of the wiki page.
- Fullscreen view: When the Drawio editor is opened, the wiki interface is completely hidden.