Skip to content

Placeholder not disappearing when typing special chars. #9873

Description

@pupaxxo

📝 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

  • TinyMCE version: any
  • Browser: any
  • Operating System: any

Additional Notes

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions