Skip to content

Fix cursor jumping when typing & or < > in bullet point fields - #167

Open
visualsbysina wants to merge 1 commit into
xitanggg:mainfrom
visualsbysina:fix/cursor-jumping-ampersand-bullet-points
Open

Fix cursor jumping when typing & or < > in bullet point fields#167
visualsbysina wants to merge 1 commit into
xitanggg:mainfrom
visualsbysina:fix/cursor-jumping-ampersand-bullet-points

Conversation

@visualsbysina

Copy link
Copy Markdown

Problem

When typing ampersands (&) or angle brackets (< >) in bullet point text areas, the cursor jumps to the end, making editing impossible.

Solution

Added HTML escaping for special characters before inserting into ContentEditable component.

Testing

  • Tested with & characters
  • Tested with < > characters
  • Tested with quotes " and '
  • Verified cursor stays in correct position

Impact

Allows using ampersands for space-saving in resumes, which is important for 1-page resume formats.

When typing special HTML characters (&, <, >) in bullet point text
areas, the cursor would jump to the end, making editing impossible.

Fixed by escaping these characters before inserting into the
ContentEditable component. The escape order matters: & must be
replaced first to avoid double-escaping.

This allows using ampersands for space-saving in resumes (e.g.,
"R&D", "A&B Testing") which is important for 1-page resume formats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant