File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,17 @@ function pkpCreateVueApp(createAppArgs) {
293
293
return vueApp ;
294
294
}
295
295
296
+ // Need to add this before the export of sciflow editor com
297
+ async function loadSciflowEditor ( ) {
298
+ if ( ! window . sciflowEditorLoaded ) {
299
+ const sciflowBase = '/lib/ui-library/node_modules/@sciflow/component-demo' ;
300
+ await import ( /* @vite -ignore */ `${ sciflowBase } /polyfills.js` ) ;
301
+ await import ( /* @vite -ignore */ `${ sciflowBase } /main.js` ) ;
302
+ window . sciflowEditorLoaded = true ;
303
+ }
304
+ return window . sciflowEditorLoaded ;
305
+ }
306
+
296
307
export default {
297
308
Vue : pkpCreateVueApp ( { } ) ,
298
309
// making vue functions available via pkp.modules.vue for plugins
@@ -321,4 +332,5 @@ export default {
321
332
vueMixins : {
322
333
dialog,
323
334
} ,
335
+ loadSciflowEditor,
324
336
} ;
You can’t perform that action at this time.
0 commit comments