New lines and spaces are miscounted

Created on 7 November 2016, about 8 years ago
Updated 21 July 2023, over 1 year ago

Problem/Motivation

  1. New lines are counted as three characters, but should just be one.
  2. Spaces are counted as two characters, but should just be one.

Steps to Recreate

  1. Set the maxlength of a formatted text field using CKEditor to 30 characters
  2. Type some characters and then hit return to create a new line

Remaining tasks

  • βœ… Get maintainer approval for the proposed resolution
  • βœ… Implement resolution
  • βœ… Write test coverage (contact a maintainer if you need help)
  • βœ… Maintainer review via the UI
  • βœ… Maintainer Code Review #1
  • βœ… Maintainer code review #2
  • βœ… Merge into dev branch, with credit to author and participants

User interface changes

None

API changes

None

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States icicleking

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024