Skip to content
Snippets Groups Projects
Commit fa5ab1d9 authored by snater's avatar snater
Browse files

Issue #3309608 by srdtwc, Snater: Check text formats

parent 297c428a
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,10 @@ class InsertUtility { ...@@ -148,6 +148,10 @@ class InsertUtility {
$config = \Drupal::config('insert.config'); $config = \Drupal::config('insert.config');
$text_formats = $config->get('text_formats'); $text_formats = $config->get('text_formats');
if ($text_formats === null) {
return;
}
foreach (array_keys($settings['editor']['formats']) as $text_format_id) { foreach (array_keys($settings['editor']['formats']) as $text_format_id) {
if (in_array($text_format_id, $text_formats)) { if (in_array($text_format_id, $text_formats)) {
static::combineEditorExtraAllowedContent( static::combineEditorExtraAllowedContent(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment