If you've recently upgraded from Plugin v1 to v2 and noticed the editor isn’t loading, you’re not alone. This issue typically arises from a single line of code.
Why does this happen?
In Plugin v1, the script tag used type="text/javascript"
via initialization:
However, in Plugin v2, you must use type="module"
to ensure the code loads properly and utilizes modern JavaScript features:
How to fix it?
Update your script tag to:
Incorrect:
<script type="text/javascript" src="path-to-stripo-plugin.js"></script>
Correct:
<script type="module" src="path-to-stripo-plugin.js"></script>
Once you make this change, the editor should load as expected in Plugin v2.
Thank you for taking the time to read our articles. We hope you will find this information helpful.
If you have any additional questions, please email us at support@stripo.email.
We would be glad to talk with you.