Skip to content

Commit 7e3a8dd

Browse files
Update EditorJS.php
Pass tunes through to sanitizeBlock if present.
1 parent c6a96e8 commit 7e3a8dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

EditorJS/EditorJS.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ public function getBlocks()
106106
$sanitizedBlocks = [];
107107

108108
foreach ($this->blocks as $block) {
109-
$sanitizedBlock = $this->handler->sanitizeBlock($block['type'], $block['data']);
109+
$sanitizedBlock = $this->handler->sanitizeBlock(
110+
$block['type'],
111+
$block['data'],
112+
$block["tunes"] ?? []
113+
);
110114
if (!empty($sanitizedBlock)) {
111115
array_push($sanitizedBlocks, $sanitizedBlock);
112116
}

0 commit comments

Comments
 (0)