manager-ui icon indicating copy to clipboard operation
manager-ui copied to clipboard

Content: WYSIWYG character count only includes text

Open shrunyan opened this issue 1 year ago • 2 comments

Describe the bug The current character count shown for the WYSIWYG editor only takes into consideration the text string literal. This is inaccurate. As the data stored to the database is the underlying HTML generated by the WYSIWYG editor. This underlying HTML is also included in the limit of what that database field allows. As such it should be inlcuded as part of the character count.

Expected behavior TL:DR; Count all the HTML, not just the user typed text.

Screenshots image

TEST = 4 characters

image

<p>TEST</p> = 11 characters

Additional context @zcolah this probably needs design consideration. As the HTML characters which would impact this character count are not visible to users. As such there maybe confusion on why that character count is different than the character count of the text they inserted.

shrunyan avatar Feb 02 '24 21:02 shrunyan

@zcolah need your confirmation if we're fine with showing the actual character count that's saved to the database compared to what the user sees when typing in the wysiwyg as pointed out by @shrunyan or is there any other design changes to be added unto this task?

finnar-bin avatar May 13 '24 01:05 finnar-bin

Currently this project is added to our development queue. No action needs to be taken. Not a priority.

zcolah avatar May 13 '24 09:05 zcolah