Link the image to the image file, so that the viewers can view it larger.
Replace the externally hosted image file with a local image.
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.
Update section Skeleton of hook_update_N()
to match the latest API documentation.
Screenshots
Update example filename case and update formatting.
Update dead links to point them to the Internet Archive copies.
hocu → created an issue.
Sorry 🤦 This is now on dev branch. I'll create a release.
This is now merged. Thanks all, and sorry for the late response 🙄
Remove and replace dead links with archived copies from Wayback Machine
One link had no archived copies, so that's been removed completely.
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.
Remove "Next step: Theming" phrase, as the steps are listed in the sidebar, and this link skips some sections.
Patch #5 fixed the errors for our Drupal 9.5.2 installation.