when using the justify toolbar item it does not justify the text.
When setting FontOptions (FontSize, FontAttributes) and TextColor to the control, they are not applied. For example setting a BackgroundColor works as expected.
<telerikRichTextEditor:RadRichTextEditor BackgroundColor="Black"
x:Name="richTextEditor"
TextColor="White"
FontAttributes="Bold"
FontSize="30" />
1) We inserted one image in Rich Text Editor. Here the original size was 100%.
2) We resized the image, i.e. reduced the size to 50%, 30%, 10%, etc.
3) After reducing size we fetched the HTML through GetHTML() method.
4) We converted the HTML string into an RTF string.
5) Again converted RTF to HTML string.
6) Image size is not updated to 50/30/10%, it has different width and height.
The cursor where editing is performed is hidden from the RichTextEditor toolbar and the keyboard when the toolbar is defined under the RichTextEditor.
The issue can be reproduced in Telerik UI for Xamarin Sample App RTE demons
Workaround:
Define the RichTextEditor toolbar above the editor
Focused event is not fired:
<richtexteditor:RadRichTextEditor Focused="RadRichTextEditor_Focused"/>
private void RadRichTextEditor_Focused(object sender, FocusEventArgs e)
{
}
On iOS after tap on any command on toolbar with opened keyboard, the keyboard is hidden in a Shell project
on Android devices with API 31 the app crashes when using context menu.
Actually this is the native android context menu which crashes the app, the RichTextEditor context menu is not displayed.
The RichTextEditor context menu gets displayed when closing the keyboard and then tap on the text.
there is a mistake with the accessibility modifier for `Telerik.XamarinForms.RichTextEditor.RichTextPasteType`. When it is Internal it's not possible to use the PasteCommand since it requires that type as input.
Solution:
use reflection to get the enum
var assembly = typeof(RadRichTextEditor).Assembly;
var type = assembly.GetType("Telerik.XamarinForms.RichTextEditor.RichTextPasteType");
var obj = Enum.ToObject(type, 1);
await Clipboard.SetTextAsync("A pasted text");
var canExecute = richTextEditor.PasteCommand.CanExecute(obj);
richTextEditor.PasteCommand.Execute(obj);
<telerikRichTextEditor:RadRichTextEditor Grid.Row="1" Unfocused="RadRichTextEditor_Unfocused"/>
private void RadRichTextEditor_Unfocused(object sender, FocusEventArgs e)
If RichTextEditor has a source like this:
var htmlSource = @"<table style='background-color:red;border: 3px solid black'>
<tr><td> test table</td></tr>
</table>";
the table is rendered, but doesn't have the styling applied.
Have I found a bug with the RichTextEditor? It appears that if I apply a padding, it behaves like the margin. Take a look at the attached file. If I change the margin or padding, the result looks the same. If I set a margin of 5 and a padding of 5, it looks like a margin of 10.
Is this a bug with the control or have I misunderstood something?