The latest release of the Wordcount plugin provides a few options that are not yet available as options in the Drupal plugin. It would be nice, if these options could be added to the Drupal plugin as well:
showRemaining(default:false)countBytesAsChars(default:false)countLineBreaks(default:false)hardLimit(default:true)
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 2963731-14.patch | 6.03 KB | kevinquillen |
| #11 | 2963731-10.patch | 6.05 KB | kevinquillen |
| #9 | 2963731-04-09-diff.txt | 1.6 KB | giuseppe87 |
| #9 | 2963731-09.patch | 5.14 KB | giuseppe87 |
| #6 | phpcs_errors-2963731-5.patch | 9.59 KB | saivaishnavijupudi |
Comments
Comment #2
feyp commentedAttached is a patch against 8.x-1.x-dev.
Comment #3
feyp commentedSorry, accidentally included another modification that shouldn't have been in the patch... Here is the correct one.
Comment #4
feyp commentedSorry again, I guess it just isn't my day today...
Comment #5
saivaishnavijupudi commentedI have found the following phpcs standard errors
Comment #6
saivaishnavijupudi commentedpatch for the coding standard errors
Comment #7
kevinquillen commentedComment #8
martijn de wit//off topic
@kevinquillen maybe you can enable Automated testing for this module. Would be nice to add tests to the patches.
Comment #9
giuseppe87 commentedI couldn't apply the #6 patch so I rerolled #4 patch because of a small error on hard_limit:
always returned true, being the not-default value = 0, so that option actually didn't work.
Comment #10
kevinquillen commentedProject tests enabled.
Comment #11
kevinquillen commentedPatch does not apply, also does not update the config schema. Rerolling. This applied for me in 9.1 and the interface was updated.
Comment #12
kevinquillen commentedPatches apply on D8/D9. RTBC.
Comment #13
kevinquillen commentedComment #14
kevinquillen commentedFixing the last 4 coding standards messages from #11.
Comment #15
kevinquillen commentedMarking RTBC. Builds complete, patch applies, coding standards resolved.
Comment #17
kevinquillen commentedCommitted. Thanks all!
Comment #18
kevinquillen commented