polluterofminds / graphite-blockstack

26 stars 4 forks source link

Bug: Adding an image to a document increases the word count #12

Closed dantrevino closed 6 years ago

dantrevino commented 6 years ago

After clicking on the insert image button, and uploading, the word count jumps. Screenshot attached has a document with only an image, no text, yet word count is over 11k.

Expected behavior: Images should not increase word count.

screen shot 2018-01-30 at 10 07 24 am

polluterofminds commented 6 years ago

Whoa, that's a good one. Thanks for the bug. I'll get on it asap.

polluterofminds commented 6 years ago

After doing some research, this bug actually applies to all text entered, not just images. The word counter is looking at the raw html and thus it is counting all html elements and the enclosing strings. Looking into a fix.

polluterofminds commented 6 years ago

@dantrevino I just pushed out the fix for this. There's another issue I found tied to images, but this one should be resolved. Let me know if you see otherwise.