Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NcRichContentEditable] Browser formatting shortcuts format the input field content but not the value #6254

Open
ShGKme opened this issue Nov 21, 2024 · 0 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components

Comments

@ShGKme
Copy link
Contributor

ShGKme commented Nov 21, 2024

Web-browsers (at least chromium-based) have formatting shortcuts like Ctrl+B (for unknown reasons).

See: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/editing_behavior.cc;l=141-148;bpv=0;bpt=1

This formatting changes HTML content but doesn't change the actual NcRickContenteditable value.

image

Proposals:

  1. Simple - block these shortcuts to not confuse users
  2. Simple + MD support — handle shortcuts to add markdown formatting (like in GitHub)
  3. Complex - parse HTML formatting. This would allow pasting more complex formatted text but probably has a huge list of edge cases

Originally from nextcloud/talk-desktop#907

@ShGKme ShGKme added bug Something isn't working 1. to develop Accepted and waiting to be taken care of feature: rich-contenteditable Related to the rich-contenteditable components labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components
Projects
None yet
Development

No branches or pull requests

1 participant