--- /dev/null
++++
+title = "Drawings & Diagrams"
+description = "Inserting and managing drawings within BookStack"
+date = "2022-10-28"
+type = "user-doc"
++++
+
+BookStack has built-in support for creating and editing drawings via integrating with [diagrams.net](https://www.diagrams.net/).
+This integration provides very powerful drawing/diagram editing capabilities for a range of use-cases.
+By default BookStack will use the online version of diagrams.net but this is [configurable by an admin](/docs/admin/other-config/#custom-diagramsnet-url).
+
+### Inserting, Editing & Managing Drawings
+
+#### WYSIWYG Editor
+
+When using the WYSIWYG editor, drawings can be created & inserted into the page via a button in the editor toolbar.
+The button is located in an overflow menu that's within the same section as tables and links:
+
+
+
+To open an existing drawing for editing, simply double click on the drawing within the editor.
+Alternatively you can press the toolbar drawing button while a drawing is selected.
+When you edit an existing drawing and save, the new version is saved as a separate image file by BookStack, instead of overwriting existing drawings.
+This is to allow proper revision history with old drawings intact.
+
+Existing drawing files can be re-used or deleted via the drawing manager. This can be accessed via the dropdown that sits next
+to the editor drawing toolbar button:
+
+
+
+#### Markdown Editor
+
+Within the markdown editor you can insert a drawing using the action found above the markdown content:
+
+
+
+To open an existing drawing for editing, just double click the image within the preview window and the existing drawing should be
+opened for editing.
+When you edit an existing drawing and save, the new version is saved as a separate image file by BookStack, instead of overwriting existing drawings.
+This is to allow proper revision history with old drawings intact.
+
+### Drawing Image File Storage & Format
+
+Drawings files created via the diagrams.net integration are saved to your own BookStack system, using the same storage mechanism as configured for normal images.
+
+For portability & compatibility, drawings are saved in PNG file format, with the original diagrams.net drawing data embedded within.
+Since the drawing data is embedded with the PNG image file, you can continue editing such drawings in any diagrams.net instance just by dragging-in or
+importing the image file.
\ No newline at end of file
<li><a href="/docs/user/searching">Searching Content</a></li>
<li><a href="/docs/user/wysiwyg-editor">Default (WYSIWYG) Editor</a></li>
<li><a href="/docs/user/markdown-editor">Markdown Editor</a></li>
+ <li><a href="/docs/user/diagrams">Drawings & Diagrams</a></li>
</ul>
</div>
<div>
<h4>Advanced Features</h4>
<ul>
- <li><a href="/docs/user/roles-and-permissions">Roles and Permissions</a></li>
+ <li><a href="/docs/user/roles-and-permissions">Roles & Permissions</a></li>
<li><a href="/docs/user/reusing-page-content">Reusing Page Content</a></li>
<li><a href="/docs/user/content-permalinks">Page Permalinks</a></li>
</ul>