Good practice for replacing the RTF Editor

Stimulsoft Reports.JS discussion
harryf75
Posts: 20
Joined: Sun Jun 11, 2017 9:59 pm

Good practice for replacing the RTF Editor

Post by harryf75 »

Hello everybody,

I just found out, that the JS Version oft Stimulsoft has no RTF Fields.

That's very pitty, because I'd like the user to use some wysiwyg-ish way to enter some custom comments for my reports.

I do this no within the report, but on my website. In my .Net / C# application we used a RTF Edit field.

For the Website our plans are to use a tool like http://ckeditor.com/. This is not RTF however - but it's html.

The HTML of ckeditor can be transfirmed to RTF if needed.

We also found out, that the Stimulsoft Text / HTML Support is somehow limited. There are no spans and no tables

So I see currently no way to have some "real" RTF replacement.


Question:

1) Is my conclusion correct? There is currently no way to have RTF or at last "richer" HTML support?

2) Is there any other way to enter some "MS Word-ish" style text in the report? Maybe a HTML editor that supports only
the HTML tags that Stimulsoft understands?

Thx and happy coding!
harryf75
Posts: 20
Joined: Sun Jun 11, 2017 9:59 pm

Re: Good practice for replacing the RTF Editor

Post by harryf75 »

Maybe I found a solution - but this requires Stimulsoft fixes. :D

Can you Stimulsoft guys support Markdown?

https://en.wikipedia.org/wiki/Markdown

The ".md" files we have at github.

This just requires some transformations from MD -> HTML and it should world out of the box.

I can currenly make a hack and do the transformation by my own - but native support would be awsome.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Good practice for replacing the RTF Editor

Post by Alex K. »

Hello,

Thank you for the information.
We need some time to investigate your solution.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Good practice for replacing the RTF Editor

Post by HighAley »

Hello.

You could do something like this on the HTML tab of the Text Editor.
HTMLEditor.png
HTMLEditor.png (19.93 KiB) Viewed 5581 times
If you need extended functionality, please, send a request to support@stimulsoft.com.

Thank you.
harryf75
Posts: 20
Joined: Sun Jun 11, 2017 9:59 pm

Re: Good practice for replacing the RTF Editor

Post by harryf75 »

Hello HighAley,

yes that totally works!

Is this Editor available standalone?

I want to embedd it like CKEditor

http://sdk.ckeditor.com/samples/uicolor.html

In my .Net Programms I used the WinForm or WCF Rich Text Editor in my programms and passed the RTF it generated to Stimulsofts RTF fields.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Good practice for replacing the RTF Editor

Post by HighAley »

Hello.

The Rich Text is supported in .Net Framework with help of the system Riched20 library.
The HTML tags are not supported in native .Net Framework so we had added our own support of the HTML tags.
The reports with RichText and HTML tags can be exported to many different formats with our report engine.
We need to say that the JavaScript engine has many limitations.
We can't loose compatibility with other products but the RichText is not supported in JavaScript.
The HTML tags have limited support too because we can't guarantee the working export of the reports to different formats because of the reasons above.
So if you will use HTML tags there is a workaround how to use any tags in JavaScript but the export of the reports will not work right.

Thank you.
harryf75
Posts: 20
Joined: Sun Jun 11, 2017 9:59 pm

Re: Good practice for replacing the RTF Editor

Post by harryf75 »

Hello HighAley,

that you for clarifing that. I am aware of the limitation of the HTML support for TextFields and the lack of RTF Fields.

Totally ok with that - and I can live with that.

So two ways - as you support currently "HTML" can you also add the feature to support "Markdown"?

That is much like html, 99% compatible with your current engine. You just have to convert the markdown to html and this works with the HTML Option.
Just the "h1" Tags needs to be supported. I suggest mapping this to styles (that's the HTML css semi way).

If markdown is supported, i can have a ready to use markdown editor in my HTML 5 Application - that would be so great - as it looks / feels like MS Word .
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Good practice for replacing the RTF Editor

Post by HighAley »

Hello.

Please, send a feature request to support@stimulsoft.com.
Our team will discuss it and make a decision.

Thank you.
harryf75
Posts: 20
Joined: Sun Jun 11, 2017 9:59 pm

Re: Good practice for replacing the RTF Editor

Post by harryf75 »

HighAley wrote:Hello.

Please, send a feature request to support@stimulsoft.com.
Our team will discuss it and make a decision.

Thank you.
Done! Thank you, too!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Good practice for replacing the RTF Editor

Post by Alex K. »

Hello

Please let us know if you need any additional help.

Thank you.
Post Reply