3
0

Fix page block copy/paste

This commit is contained in:
Jože Fortun 2023-10-27 12:11:15 +02:00
parent f1d1fec960
commit b7c2ea8f25
2 changed files with 4 additions and 4 deletions

View File

@ -970,7 +970,7 @@ export default {
const paste = (event.clipboardData || window.clipboardData).getData('text')
// Doing this to handle JSON parse error
try {
const block = compose.pageBlockMaker(JSON.parse(paste))
const block = compose.PageBlockMaker(JSON.parse(paste))
const valid = this.isValid(block)
if (valid) {

View File

@ -118,9 +118,9 @@ page:
cloneSuccess: Block has been cloned to the bottom of the page
pasteSuccess: Block has been pasted to the bottom of the page
duplicateFailed: Could not duplicate block
blockWaiting: There is a page-block awaiting
copyFailed: Could not copy block {{reason}}
invalidBlock: Not a valid page-block
blockWaiting: There is a page block awaiting
copyFailed: Could not copy page block {{reason}}
invalidBlock: Not a valid page block
page-layout:
notFound:
edit: No page layout, create one to edit it