fix the order of config() and init() in readme (#1049)
This commit is contained in:
@@ -89,8 +89,6 @@ V7 is changing significantly the way to integrate and customize SVGEdit. You can
|
||||
import Editor from './Editor.js'
|
||||
/* for available options see the file `docs/tutorials/ConfigOptions.md` */
|
||||
const svgEditor = new Editor(document.getElementById('container'))
|
||||
/* initialize the Editor */
|
||||
svgEditor.init()
|
||||
/* set the configuration */
|
||||
svgEditor.setConfig({
|
||||
allowInitialUserOverride: true,
|
||||
@@ -98,6 +96,8 @@ V7 is changing significantly the way to integrate and customize SVGEdit. You can
|
||||
noDefaultExtensions: false,
|
||||
userExtensions: []
|
||||
})
|
||||
/* initialize the Editor */
|
||||
svgEditor.init()
|
||||
</script>
|
||||
</html>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user