Skip to content

Commit 6d83c14

Browse files
authored
[BUGFIX] Add data-new-url attribute to custom drop zone (#621)
ref #611
1 parent d5507c3 commit 6d83c14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Classes/Service/ContentEditableWrapperService.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,14 @@ public function wrapContentWithCustomDropzone(
345345
'data-tables' => $tables,
346346
'data-pid' => (int)$pageUid,
347347
'data-defvals' => json_encode($defaultValues),
348+
'data-new-url' => $this->renderEditOnClickReturnUrl(
349+
$this->renderNewUrl(
350+
$tables,
351+
0,
352+
0,
353+
$defaultValues
354+
)
355+
),
348356
]);
349357

350358
$dropZone = $tagBuilder->render();

0 commit comments

Comments
 (0)