fix(doc): fix user extension example in index file (#727)
This commit is contained in:
@@ -20,11 +20,11 @@
|
|||||||
<body style="margin:0">
|
<body style="margin:0">
|
||||||
<!-- svgedit container can be positionned anywhere in the DOM
|
<!-- svgedit container can be positionned anywhere in the DOM
|
||||||
but it must have a width and a height -->
|
but it must have a width and a height -->
|
||||||
<!--
|
<!--
|
||||||
<h1>SVGEdit</h1>
|
<h1>SVGEdit</h1>
|
||||||
<div id="container" style="width:100%;height:550px"></div>
|
<div id="container" style="width:100%;height:550px"></div>
|
||||||
<h1>End</h1>
|
<h1>End</h1>
|
||||||
-->
|
-->
|
||||||
<div id="container" style="width:100%;height:100vh"></div>
|
<div id="container" style="width:100%;height:100vh"></div>
|
||||||
</body>
|
</body>
|
||||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||||
@@ -38,7 +38,7 @@ svgEditor.setConfig({
|
|||||||
allowInitialUserOverride: true,
|
allowInitialUserOverride: true,
|
||||||
extensions: [],
|
extensions: [],
|
||||||
noDefaultExtensions: false,
|
noDefaultExtensions: false,
|
||||||
userExtensions: [/* './react-extensions/react-test/dist/react-test.js' */]
|
userExtensions: [/* { pathName: './react-extensions/react-test/dist/react-test.js' } */]
|
||||||
})
|
})
|
||||||
// Variable XDOMAIN below is created by Rollup for the Xdomain build (see rollup.config.js)
|
// Variable XDOMAIN below is created by Rollup for the Xdomain build (see rollup.config.js)
|
||||||
/* globals XDOMAIN */
|
/* globals XDOMAIN */
|
||||||
@@ -52,4 +52,4 @@ try { // try clause to avoid js to complain if XDOMAIN undefined
|
|||||||
}
|
}
|
||||||
} catch (error) { /* empty fn */ }
|
} catch (error) { /* empty fn */ }
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user