isfand
1
I’ve found a possible bug related to text formatting. Let’s assume bold is the mark in this case.
Steps to Reproduce:
- Clear all text from the editor.
- Type a word, then add one or more blank spaces at the end.
- Press Ctrl + Shift + Left to select the word along with the trailing space(s).
- Apply bold formatting.
- Only the word becomes bold—the trailing space(s) remain unmarked.
Expected Behavior:
The blank spaces should also receive the bold mark, just like when we select only spaces and apply bold formatting.
Let me know if this is the intended behavior or a bug and also a solution.
marijn
2
This is intentional behavior in the toggleMark
command. See this thread for context.
isfand
3
Thanks for the quick response.
Could you also suggest an appropriate solution for customizing it for my use-case?
marijn
4
I guess behavior like that should be configurable. This patch adds an option to toggleMark
that makes it possible to turn it off.