cc-input-text: multi + secretSee original GitHub issue
We didn’t implement secret in multiline mode because it’s not simple to create the equivalent of
<input type=password> with a textarea.
What we tried
We naively tried this when multi + secret:
- if secret is hidden => display a
- if secret is revealed => display a
<textarea>with the multiline value
This behaviour is almost what we want, the weird case comes from the fact that you can still edit the
<input type=password> and once you edit the value while hidden you lost line breaks when you reveal the secret.
If we decide to do
secret while hidden with
<input type=password readonly> the result will work with the copy to clipboard button but not with a text selection and a regular copy paste. We would lose line breaks.
Maybe an idea
If we use a filter:blur we could achieve something but I’m not convinced yet and I want feedbacks.
- Created 4 years ago
- Comments:11 (9 by maintainers)
Top GitHub Comments
The custom font seems like a good idea, here’s a proof of concept:
- Generate (look for) a font that has only the
- Ask around if it’s a good idea
- Use a dot instead of the crossed square