Prevent undoInputRule #722
Replies: 4 comments 4 replies
-
Also looking for how to do this, I'm converting text based emojis into their actual emojis, but on backspace rather than remove the entire emoji, it just reverts to the text version and all chars need to be deleted |
Beta Was this translation helpful? Give feedback.
-
Update: found a bit of an answer and just needed to work through how to use it for our use case, but basically you just override the backspace keyboard shortcut. Just takes a bit of working out as to what my work for the particular node you're removing |
Beta Was this translation helpful? Give feedback.
-
@mc-martin-o could you picture sharing your code for this? This would help us a ton :) |
Beta Was this translation helpful? Give feedback.
-
@space-squad
|
Beta Was this translation helpful? Give feedback.
-
Hi,
currently I am working with InputRules to add german typographical quotes which are a bit different to the english ones. But there is one thing I would like to prevent and that is the logic for the backspace key after the rule is applied. (Does not make sense for one character replacements at least for me) I found that binding backspace to the undoInputRule happens in the setup for the Editor class. Is there any way to override that behaviour?
Regards Martin.
Beta Was this translation helpful? Give feedback.
All reactions