1/** 2 * @file 3 * Paragraphs scripts. 4 */ 5 6(function ($, Drupal) { 7 8 'use strict'; 9 10 Drupal.behaviors.paragraphs = { 11 attach: function (context, drupalSettings) { 12 // this is a hacky fix to show the single use wysiwyg editor (that references a paragraph) when there is no content added to it 13 // with no content on wysiwyg, the paragraph shows button to add, this JS will trigger the button click and show the editor 14 const $paraAddButton = $('.js-add-para-btn-to-trigger', context); 15 $paraAddButton.mousedown(); 16 } 17 }; 18})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.