Skip to content
Snippets Groups Projects
Commit b91edbe3 authored by Gaus Surahman's avatar Gaus Surahman
Browse files

Issue #3427632 by Mortarion: Shortcode compatibility with CKeditor5

parent e3ecf23d
No related branches found
No related tags found
No related merge requests found
Pipeline #120690 passed with warnings
......@@ -35,17 +35,17 @@ class Shortcode {
$string = self::process($string, $item);
// @todo remove into self::replace().
$string = str_replace("<p><$item>", "<$item>", $string);
$string = str_replace("<p><$item ", "<$item ", $string);
$string = str_replace("<p><$item>\n", "<$item>", $string);
$string = str_replace("</$item></p>\n", "</$item>\n", $string);
$string = str_replace("</$item></p>", "</$item>", $string);
}
$text = self::process($string, $container);
// @todo remove into self::replace().
$text = str_replace("<p><$container>", "<$container>", $text);
$text = str_replace("<p><$container ", "<$container ", $text);
$text = str_replace("<p><$container>\n", "<$container>\n", $text);
$text = str_replace("</$container></p>\n", "</$container>\n", $text);
$text = str_replace("</$container></p>", "</$container>", $text);
return $text;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment