You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RichTextBox.Text ignores newline and returns this:
Using TextRange(RichTextBox.Document.ContentStart, RichTextBox.Document.ContentStart).text (the usual method for extracting RichTextBox text) ignores all the emojis and returns this:
Which is understandable since TextRange probably doesn't support emoji at all
I wasn't able to find any workarounds, so please tell me if there is any, but as of now it just looks like newline is ignored completely
The text was updated successfully, but these errors were encountered:
I modified the class "TextSelection" to take into account the new lines :
case TextPointerContext.EmbeddedElement:
var nextInsertionPosition = p.GetNextInsertionPosition(LogicalDirection.Forward);
if (nextInsertionPosition != null && new TextRange(p, nextInsertionPosition).Text.Contains(Environment.NewLine))
buf.AppendLine();
break;
RichTextBox input looks like this:
RichTextBox.Text ignores newline and returns this:
Using TextRange(RichTextBox.Document.ContentStart, RichTextBox.Document.ContentStart).text (the usual method for extracting RichTextBox text) ignores all the emojis and returns this:
Which is understandable since TextRange probably doesn't support emoji at all
I wasn't able to find any workarounds, so please tell me if there is any, but as of now it just looks like newline is ignored completely
The text was updated successfully, but these errors were encountered: