Skip to content

Commit 2451dad

Browse files
fix(block-snapshot): change the canvas selector to #app (#1514)
1 parent d6b6e0c commit 2451dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/block/src/js/blockSetting.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export const initEditBlock = (block) => {
384384
export const getBlockBase64 = () => {
385385
const iframe = document.querySelector('#canvas')
386386
const subDocument = iframe.contentWindow.document
387-
const container = subDocument.querySelector('.design-page')
387+
const container = subDocument.querySelector('#app')
388388

389389
return html2canvas(container, { useCORS: true })
390390
.then((canvas) => canvas.toDataURL('image/webp'))

0 commit comments

Comments
 (0)