Put the editor on your site
Thanks for buying a license. Check your key, add the domains it goes on, and copy the code with your key in it. Come back any time to change your domains.
Check your key
Polar showed your key after you paid, and emailed it to you. It starts with
MSE-. If you can't find it, sign in to Polar's customer portal with the email you bought with.Add your domains
Your key works only on the domains you add to it, so a key copied from your page does nothing on anyone else's site. Check your key above, then sign in with the email you bought with to add them.
Add the editor to your page
Check your key above and it goes into this code for you. Put it where the editor should be, and do what your site needs with the file in the
processevent.html<div id="editor" style="height: 600px"></div> <script type="module"> import { appendDefaultEditor } from "https://cdn.mastershot.app/editor/1.2.0/editor.js" const editor = appendDefaultEditor("#editor", { licenseKey: "MSE-YOUR-LICENSE-KEY", }) editor.on("process", ({ dest }) => { // dest is the edited File: upload it, or show it. }) </script>Using React, Vue, Svelte or Angular? See the editor in a framework. To upload the file, choose its format and size, or limit the tools, see the docs.
Open your site
Localhost and
.testnames never need a key, so build and test there for free. On a domain you added, the editor shows no line above it.If a thin "Unlicensed Mastershot editor" line shows above the editor, open your browser's console: the editor says why there. Most often the domain isn't on your list yet. More about keys and domains.