Hello Guys,
According to the meta data,
The Xamarin RichTextEditor's SelectionRange object is settable
//
// Description:
// Gets or sets the selection range of the text in the Telerik.XamarinForms.RichTextEditor.RadRichTextEditor.
public RichTextSelectionRange SelectionRange { get; set; }
So I tried to "set" the SelectionRange by code:
public void SetSelecionRange(int startIndex, int endIndex)
{
EditBox.SelectionRange = new RichTextSelectionRange(startIndex, endIndex);
}
But actually nothing happens, and I am not sure the how the start and end index of the selection is configured, perhaps based on the html code index? or plain text index?
I am not able to find the guide for setting selection range.
Please offer some help.
Hello everyone.
Since the richtexteditor control now supports setting a selection range programmatically, by the method EditBox.SelectionRange = new RichTextSelectionRange(startPosition,endPosition);
I just need to know how to insert specified plain text or html code at the current selected range or cursor position?
I guess probably I can achieve this by invoking javascript, but the webView.EvaluateJavaScriptAsync("<Your JS goes here>") not seems to be exposed.
Thank you.
The entire screen for iOS is pushing up the entire screen when editing Rich Text Editor with the keyboard popped out, making the toolbar not accessible anymore.
The first attached picture is without the keyboard popped out, and the second picture is with keyboard.
This issue is only applicable for iOS devices, android devices work fine. Is there some way to work around this issue? Thanks.
Sorry if this is a real newbie question...
How do I use RichTextEditor with MVVM? I'm not using an MVVM implementation (Fresh, etc.), I just want to bind the text (html) of the control to my view model but I'm stumped. Thanks.