Skip to content

Commit a1b4c7a

Browse files
author
Edward
committed
Fix: Embed add prefix. Update composer
1 parent 699ee41 commit a1b4c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "boring-dragon/editorjs-simple-html-parser",
2+
"name": "edd-g/editorjs-simple-html-parser",
33
"description": "A simple Json to Html parser for EditorJS library",
44
"minimum-stability": "dev",
55
"autoload": {

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private function parseLink($block)
234234
private function parseEmbed($block)
235235
{
236236
$figure = $this->dom->createElement('figure');
237-
$figure->setAttribute('class', $block->type);
237+
$figure->setAttribute('class', $this->prefix.'-'.$block->type);
238238

239239
switch ($block->data->service) {
240240
case 'youtube':

0 commit comments

Comments
 (0)