TelerikEditor

1 Answer 76 Views
Editor
Tim
Top achievements
Rank 1
Tim asked on 12 Feb 2023, 10:34 AM

I have a requirement in my project to allow the editing of text files.

The editor doesn't need to be sophisticated, i.e. basic editing functionality, cutting-and-pasting lines, and search and replace text, where the search facility programmatically highlights all the text that can be replaced.

I have tried using the TelerikEditor, with mixed results.

I have made the <p> element behave as an inline element. This makes it look more like a text editor, but you have to hit return twice at the end of each line to start a new line. Also adding a new line after a highlighted word, the highlight "bleeds" across the lines. I suspect there will be other undesirable behaviour as I add functionality.

Is it possible to customise the TelerikEditor in a better way to get the behaviour I require?
Or is there a better component to use?

I notice Telerik advertise a "RichTextEditor", but I assume that is just another name for the Html Editor.

 

1 Answer, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 15 Feb 2023, 12:03 PM

Hello Tim,

Changing a block element (<p>) to behave as an inline element might cause unexpected results in certain functionalities of the Editor, so this is not something that is recommended.

As for the editing experience - can you provide more details on the full list of requirements that you need to cover? Changing the current behavior of the Editor might not be optimal (or even not possible) as well as it might cause side effects to other functionalities.

Regards,
Stamo Gochev
Progress Telerik

Learn about the important changes coming in UI for Blazor 4.0 in January 2023!
Tim
Top achievements
Rank 1
commented on 15 Feb 2023, 03:56 PM

Thanks for the reply.

It was a longshot. It is indeed difficult to get text editor behaviour in a html editor.

I will investigate alternative components instead.

 

Stamo Gochev
Telerik team
commented on 20 Feb 2023, 09:13 AM | edited

Hi Tim,

Thanks for your reply. Do not hesitate to reach back to us if you have further questions.

Regards,
Stamo Gochev
Progress Telerik

Tags
Editor
Asked by
Tim
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Share this question
or