fix the order of config() and init() in readme (#1049)

This commit is contained in:
szerintem
2025-04-21 09:57:58 +02:00
committed by GitHub
parent c22cc05006
commit baa68718c8

View File

@@ -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>
```