Skip to content

createPaintSnapshotPlugin

createPaintSnapshotPlugin(): EditorPlugin

Lets the editor save and restore painted views: editor.captureSnapshot() returns a paint that a later editor shows through setSnapshot() or the snapshot option until its document is live. Without this plugin, capture returns nothing and an offered snapshot is ignored.

EditorPlugin