Need of improovement or workarounds

As I'm using RTE mostly for adding or editing html, I would like to point out some difficulties.

  1. When i change the view to Code View, the html is presented compressed and becomes useless. There must be a way to make it human readable for editing and then recompress it if needed. It will be also awesome to have colored tags in html.
  2. When I change the rel='nofollow' href of a link, even if I'm using relative paths, the component add the full url. This is problematic when I'm using the component in debug mode. It is adding https://localhost:portnumber/path. It will be good to have a switch in the popup that will give me the option to use relative or absolute paths. Generally, it will be good to have this option in all this kind of popups that are editing addresses.
If by my mistake, these options exists and I haven't found them, please let me know.



3 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team August 14, 2025 06:05 AM UTC

Hi Stelios Malakoudis,



Query 1. "When i change the view to Code View, the html is presented compressed and becomes useless. There must be a way to make it human readable for editing and then recompress it if needed. It will be also awesome to have colored tags in html."

RichTextEditor comes with a basic HTML source editor through the view-source property. You can use third-party libraries, like the CodeMirror plugin, which can be used to highlight the syntax of HTML. CodeMirror plugin for Rich Text Editor makes editing of HTML source code with a pleasant experience.


Query 2. "It will be good to have a switch in the popup that will give me the option to use relative or absolute paths."

When the EnableAutoUrl property is enabled, it will accept the given URL (relative or absolute) without validating it for hyperlinks. Otherwise, the given URL will be automatically converted to an absolute path URL by prefixing https:// for hyperlinks, and it defaults to false.


Regards,
Vinitha

Marked as answer

SM Stelios Malakoudis August 14, 2025 10:56 PM UTC

Thanks for the response! I didn't notice the EnableAutoUrl. It is working like a charm!

Regarding Code View, Is there any way to not compress the html?

Regarding the code mirror plugin, do you have some example?



VH Vileam Healen January 23, 2026 08:11 AM UTC


Loader.
Up arrow icon