Closed (works as designed)
Project:
MaxLength
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Dec 2012 at 08:58 UTC
Updated:
15 Feb 2018 at 13:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brandy.brown commentedI don't think this needs a patch. You can achieve this by enabling the "Truncate HTML" option. Please reopen if necessary.
Comment #2
brandy.brown commentedComment #3
dijithadt commentedI already enabled the "Truncate HTML" option in order to exclude html tags in character counting in ckeditor.Still the issue exists and i applied the maxlength-character_count_issue.patch and count getting correct in all cases except for the ul or ol and li tags and for any tags inside the li tag such as strong,bold etc.Customize it to get the correct count in case of ul,ol and li tags and for any tags inside the li tag such as strong,bold etc.
Comment #4
frank.schalkwijk commentedRecreated patch against 3.2
Comment #5
frank.schalkwijk commentedComment #6
thomwilhelm commentedHad good results using the patch in #4. However I found changing the function htmlspecialchars_decode to html_entity_decode is better as it replaces all HTML entities instead of just a subset of them.
With the existing patch characters like
‘ ’ "are only counted as 1 character in the javascript calculation, but not as 1 character in the maxlength_validate_input function.Comment #7
markusd1984 commentedIs this supposed to work also for the ckeditor module (not WYSIWYG module plugin) ?
I tried Force text truncate & Truncate html but didn't help (perhaps they don't apply to the summary inputs).
I tried patching #5 against 7.x-3.x-dev but only /js/maxlength.js seems to have changed.
I tried manually but the patch but unfortunately it didn't work for me :(
Can you please confirm the changed content is supposed to be: