London
Account created on 10 November 2005, about 19 years ago
#

Merge Requests

Recent comments

🇬🇧United Kingdom hocu London

Link the image to the image file, so that the viewers can view it larger.

🇬🇧United Kingdom hocu London

Replace the externally hosted image file with a local image.

🇬🇧United Kingdom hocu London

Add link to the HAL module source code.

🇬🇧United Kingdom hocu London

This one has one small bug, though. The counter works fine for words, while entering text. But as soon as you clear the field, "Used" value is still 1, see the screenshots.


The issue is around:

var rawInput = $("<div/>").html($(this).val());
input = rawInput.text().trim().replace(/(\r?\n|\r)+/g, " ");
var words = input.split(" ");
currentLength = words.length;

When you split an empty string, you get an array with one empty string. So, var words = input.split(" ") returns [""]. Therefore, the length is 1.

The solution is simple though, we just need a check for rawInput.text(), and if it's not empty, we can proceed to sanitise its input and split it.

I'll submit a patch for that one today.

🇬🇧United Kingdom hocu London

Update title and summary.

🇬🇧United Kingdom hocu London

Update section Skeleton of hook_update_N() to match the latest API documentation.

🇬🇧United Kingdom hocu London

Update example filename case and update formatting.

🇬🇧United Kingdom hocu London

Update dead links to point them to the Internet Archive copies.

🇬🇧United Kingdom hocu London

Sorry 🤦 This is now on dev branch. I'll create a release.

🇬🇧United Kingdom hocu London

This is now merged. Thanks all, and sorry for the late response 🙄

🇬🇧United Kingdom hocu London

Remove and replace dead links with archived copies from Wayback Machine

One link had no archived copies, so that's been removed completely.

🇬🇧United Kingdom hocu London

Update the style for certain note blocks so that they are consistent with the "Adding assets (CSS, JS) to a Drupal theme via *.libraries.yml" doc page.

🇬🇧United Kingdom hocu London

Remove "Next step: Theming" phrase, as the steps are listed in the sidebar, and this link skips some sections.

🇬🇧United Kingdom hocu London

Patch #5 fixed the errors for our Drupal 9.5.2 installation.

Production build 0.71.5 2024