When adding an icon such as <i class="fa-light fa-envelope"></i> (the format which FontAwesome recommends), the icon's HTML disappears upon saving. We figured this was maybe due to the type of tag used (the i tag), so we tried using a div instead (<div class="fa-light fa-envelope"></div>). This div is not stripped from the HTML but the icon is not rendered.
Please allow inserting icons in the Editor content.
I am using the LinkCommandArgs to programmatically create a link. I am adding all the required parameters (string href, string text, string target, string title) but no link is added to the Editor content.
Reproduction: https://blazorrepl.telerik.com/QyOTwCuU48HSG5xp41.
===
ADMIN EDIT
===
For the time being, you may add a link using the HtmlCommandArgs tool and the "insertHtml" command like so: https://blazorrepl.telerik.com/GyuTmMkt56f3YiM754.
The Telerik Blazor Telerik Editor Insert Hyperlink functionality is not consistent with other Telerik Editor components and non Telerik Editors. Usually when dealing with Editors and the Insert Hyperlink feature, you can insert a hyperlink without need to select and convert existing text. You can also usually use the ctrl+k keyboard shortcut instead of clicking on the button. This does not work in the Telerik Blazor Editor.
The differences and lack of functionality has been raised as an issue by end users.
Expected Behaviour
This can be reproduced on any of the Kendo UI for jQuery demo pages. It can also be reproduced within the editor on this very form.
Actual Behaviour
This can be reproduced on any of the demo pages that has the hyperlink button.
Hello,
the Color Tool Customization in the Telerik Editor is not working correctly. Colors are only generate HTML in Rgb.
The documentation says: "ValueFormat": The format, which the Color tool will set in the generated HTML markup. Use Rgb
or Hex
.
Thanks in advance.
For example: https://docs.telerik.com/blazor-ui/components/editor/built-in-tools#color-tool-customization
@using Telerik.Blazor.Components.Editor
<TelerikEditor Tools="@EditorTools"
@bind-Value="@EditorValue">
</TelerikEditor>
@code {
private string EditorValue { get; set; }
private List<IEditorTool> EditorTools { get; set; } = new List<IEditorTool>()
{
new ForeColor()
{
Title = "Text Color",
Colors = new List<string> { "#f00", "#ff9900", "rgb(0, 128, 0)", "rgba(0, 0, 255, .8)" },
ValueFormat = ColorFormat.Hex
},
new ViewHtml()
};
}
When copying from the Editor and pasting in Word (keep source formatting), basic stuff like font and font size are not kept.
The text will always become Times New Roman, and the font sizes are not the same, for example 14pt becomes 13.5pt...
Using IFrame-mode and injecting css to set default fonts since that is not supported in a proper way...
From what I can see you need to intercept the copy-event and fix the html like your competitors do (for example syncfusion)...
The problem is that the ValueChanged fires without an actual change in the Editor content - just click in it. I reproduce this issue in the following scenario:
Reproduction: https://blazorrepl.telerik.com/wfaxnvPv19jUCGhd15.
<table>
<tr>
<td style="width:100px;background-color:#FF0000;">Test</td>
</tr>
</table>
<table class="k-table"><tbody><tr><td><p>Test</p></td></tr></tbody></table>
Previously if content in HTML view of Editor exceeded height a scroll bar would appear like below (v2.29).
Now there is no scroll bar and you have to press the down arrow to get further in the content (v.3.0.1) .
to fix this locally I added CSS overflow: auto to .k-textarea
Hi,
We are using the Blazor Editor for a feature in one of our web apps, and created a custom tool for the editor that allows the user to modify the raw HTML.
If an IFrame is added to the HTML with an empty or missing "src" attribute like so:
<iframe src=""></iframe>
OR
<iframe></iframe>
The editor will throw a JS Interop exception:
No value supplied for attribute src
OP@https://[redacted]/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:830821
PP.prototype.computeAttrs
Would you guys consider this a bug with the editor? Since they are technically valid elements, mganss' HtmlSanitizer does not remove sourceless IFrames and unfortunately there does not seem to be a way to make it do so.
Thanks in advance for the assistance!
We have a survey page that has multiple editor fields in it. They need to accept rich text from a paste or other keyboard commands, but we do not want to waste the vertical space for the toolbar appearing in each editor field.
Please update the editor to hide the toolbar if the List<IEditorTool> collection is empty.
This change would make it much easier and less fragile than removing the toolbar to through Css.
It would be nice to have an ability to group CustomTool / icons much like we can do EditorButtonGroup(s) - e.g.
new CustomToolGroup (new CustomTool("Save"), new CustomTool("Import"), new CustomTool("Export"))