Skip to content

Commit f2452cb

Browse files
Update BlockHandler.php
Return block tunes as part of sanitised block data.
1 parent 7e3a8dd commit f2452cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

EditorJS/BlockHandler.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ public function validateBlock($blockType, $blockData)
6565
*
6666
* @return array|bool
6767
*/
68-
public function sanitizeBlock($blockType, $blockData)
68+
public function sanitizeBlock($blockType, $blockData, $blockTunes)
6969
{
7070
$rule = $this->rules->tools[$blockType];
7171

7272
return [
7373
'type' => $blockType,
74-
'data' => $this->sanitize($rule, $blockData)
74+
'data' => $this->sanitize($rule, $blockData),
75+
'tunes' => $blockTunes
7576
];
7677
}
7778

0 commit comments

Comments
 (0)