add ability to add extensions not located in the extensions folder

This commit is contained in:
jfh
2020-10-04 23:10:35 +02:00
parent cfbb5a5ec8
commit 08c68cb537
2 changed files with 7 additions and 3 deletions

View File

@@ -36,7 +36,10 @@ svgEditor.setConfig(
svgEditor.setConfig({
extensions: [],
noDefaultExtensions: false,
userExtensions: []
// in addition to standard extensions, it is possible to add user extensions.
// they behave exactly like all extensions but they can be anywhere
// so the full relative path needs to specified for each user extensions.
userExtensions: [/* '../ext-helloworld/ext-helloworld.js' */]
});
// OTHER CONFIG