Adding your own JS plugin to Wick Editor

This is a long shot… But I hope I can add a cool new feature to Wick Editor by way of an asset. The asset adds a new src for external JS libraries in the document head of the Wick Editor so that the editor itself can be extended. It’s a simple concept that should, in theory, work. I hope to add new libraries and codes that can do “things like” sprite clipping. My test asset so far can add the library to the Wick Editor and can also be exported to the HTML where it does the same.

Here it shows the asset connects to the JS library in the editor after running preview.

And here it is connecting in the exported HTML…

But as you can see in the editor it runs it every time you preview.
I need to do more tests but so far it looks promising.
Happy New Year
Luke

2 Likes

I’ve added a script that checks for the library’s existence. I’m happy for people to test it if they like. My simple tests so far work but I’d love people to tinker and break.

JSImporter.zip (1.1 KB)

2 Likes