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

Issue #1888744 by nick_schuch: Fixed text.module missing text_library_info() -...

Issue #1888744 by nick_schuch: Fixed text.module missing text_library_info() - does not explicitly declare js dependencies.
parent 3422b7b5
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
......@@ -43,7 +43,7 @@ function formElement(array $items, $delta, array $element, $langcode, array &$fo
'#rows' => $this->getSetting('summary_rows'),
'#description' => t('Leave blank to use trimmed value of full text as the summary.'),
'#attached' => array(
'js' => array(drupal_get_path('module', 'text') . '/text.js'),
'library' => array(array('text', 'drupal.text')),
),
'#attributes' => array('class' => array('text-summary')),
'#prefix' => '<div class="text-summary-wrapper">',
......
......@@ -7,6 +7,26 @@
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_library_info().
*/
function text_library_info() {
$libraries['drupal.text'] = array(
'title' => 'Text',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'text') . '/text.js' => array(),
),
'dependencies' => array(
array('system', 'jquery'),
array('system', 'jquery.once'),
array('system', 'drupal'),
),
);
return $libraries;
}
/**
* Implements hook_help().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment