Skip to content

Examples

Vilius edited this page Jan 6, 2018 · 5 revisions

1. Open, edit images, save using miniPaint on iframe

open-edit-save.html

2. Add miniPaint in page as iframe

<iframe style="width:100%; height:1000px;" id="miniPaint" src="https://viliusle.github.io/miniPaint/"></iframe>


Note: You can access layers class globally: window.Layers, import it using import or document.getElementById('miniPaint').contentWindow.Layers if you try to access code inside other iframe.