Issue #2162685 by clemens.tolboom: CKEditor's Internal::generateFormatTagsSetting() should call check_markup() with caching enabled.
parent
8f76f3c18a
commit
662948e300
|
@ -258,7 +258,7 @@ class Internal extends CKEditorPluginBase {
|
||||||
$possible_format_tags = array('h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre');
|
$possible_format_tags = array('h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre');
|
||||||
foreach ($possible_format_tags as $tag) {
|
foreach ($possible_format_tags as $tag) {
|
||||||
$input = '<' . $tag . '>TEST</' . $tag . '>';
|
$input = '<' . $tag . '>TEST</' . $tag . '>';
|
||||||
$output = trim(check_markup($input, $editor->format));
|
$output = trim(check_markup($input, $editor->format, '', TRUE));
|
||||||
if ($input == $output) {
|
if ($input == $output) {
|
||||||
$format_tags[] = $tag;
|
$format_tags[] = $tag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue