When you press enter, the remaining message is discounting 2 characters instead 1. If I make a simple modification on js it only discounts 1.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ivan.chavarro created an issue. See original summary.

ivan.chavarro’s picture

askibinski’s picture

Status: Active » Reviewed & tested by the community

Looks good.

An enter is now counted as 1 char which seems logical.

Tested together with patch at #2804757: Truncate option makes CKEditor cursor endlessly blink in:

* Chrome 58
* IE11 / win8
* Edge 15 /win10
* Firefox 53 / win10
* Safari 10.1 / osx

mpp’s picture

Also RTBC, can this be committed please?

ralphvdhoudt’s picture

Patch works as advertised

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

@askibinski Thanks so much for providing a good test coverage!
@ivan.chavarro Thank you for the patch

Thank you for providing the patch! I merged it and pushed it up

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rpayanm’s picture

FileSize
47.66 KB

I been tested this patch and it works fine but when you use character enter and I try to save I got this error:

Summary: may not be longer than 1000 characters.

alt