Upgrade Notes
Version 7.3 (and below) to 7.4
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 an 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)
Previous Versions:
<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>
Version 7.4:
<head>
<script src="http://www.example.com/static/DiagramEditor.js"
data-diagram-editor-global="__editor">
</script>
</head>