Skip to content
Snippets Groups Projects
Commit 662948e3 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2162685 by clemens.tolboom: CKEditor's...

Issue #2162685 by clemens.tolboom: CKEditor's Internal::generateFormatTagsSetting() should call check_markup() with caching enabled.
parent 8f76f3c1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -258,7 +258,7 @@ protected function generateFormatTagsSetting(Editor $editor) {
$possible_format_tags = array('h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre');
foreach ($possible_format_tags as $tag) {
$input = '<' . $tag . '>TEST</' . $tag . '>';
$output = trim(check_markup($input, $editor->format));
$output = trim(check_markup($input, $editor->format, '', TRUE));
if ($input == $output) {
$format_tags[] = $tag;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment