Upgrade Notes
Upgrading from V7.3 and Earlier
Migration steps:
-
Remove link to
esd.css
. It has been incorporated into the
DiagramEditor.js
bundle.
-
Change the script tag that references
dojo.js
to reference
DiagramEditor.js
.
-
Remove the
data-dojo-config
attribute and add a data-diagram-editor-global
attribute. This attribute defines the global editor reference which will be used to create a new
editor instance.
-
Replace the
require
code block with the window load event and create a new editor instance
using the reference referred to in the step above. (See below for an example)
Including and Starting the Editor in V7.3 and Earlier:
<head>
<link rel="stylesheet" href="http://www.example.com/css/esd.css">
<script
data-dojo-config="async: 1, tlmSiblingOfDojo: 0, baseUrl: 'http://www.example.com/static'"
src="http://wwww.example.com/static/dojo/dojo.js">
</script>
</head>
Including and Starting the Editor in this Release:
<head>
<script src="http://www.example.com/static/DiagramEditor.js"
data-diagram-editor-global="__editor">
</script>
</head>