tinymce / tinymce

The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular
https://www.tiny.cloud
Other
14.88k stars 2.23k forks source link

Placeholder not disappearing when typing special chars. #9873

Open pupaxxo opened 3 days ago

pupaxxo commented 3 days ago

đź“ť Issue Description

Problem

The placeholder text does not disappear when typing certain special characters on an Italian keyboard layout (e.g., @, #, ¶, []). To type these character you need to press the Alt (or Option on macOS) key and then the actual keyboard key.

Reproduction Steps

  1. Configure a TinyMCE editor instance with a placeholder text.
  2. Use an Italian keyboard layout.
  3. Begin typing any of the following special characters: @, #, ¶, [].

Expected Behavior

The placeholder should disappear as soon as the user types any character, including special characters.

Observed Behavior

When typing the specified special characters, the placeholder remains visible, overlapping with the input text.

Potential Cause

It seems the issue might be related to the check performed in the following code snippet: Placeholder.ts, Line 78.

Environment

Additional Notes

The issue can be reproduced on any instance of TinyMCE with a configured placeholder text.

lostkeys commented 3 days ago

Thank you @pupaxxo for your report, I can replicate this. — Fredrik, Product Manager