Fix page block copy/paste
This commit is contained in:
parent
f1d1fec960
commit
b7c2ea8f25
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user