Hi, I am migraiting my solution to servoy 8 and I have a form with a field which display types is RTF.
It doesn’t show anything.
What could be the alternative to solve that?
Hi, I am migraiting my solution to servoy 8 and I have a form with a field which display types is RTF.
It doesn’t show anything.
What could be the alternative to solve that?
Hi, I can answer myself, but is a trick.
Under the assumption that RTF AREA doesn’t work in NGClient it could be transform to a HTML Area.
I didn’t found any documentation in the wiki that RTF Area doesn’t work in NGClient.
Could any one deny or insure that?
As far as I know there is no default component for RTF in the ng-client.
You could switch to a html area, but then you will have to convert your rtf data to html code.
I seem to remember there is a sample solution somewhere that does that for you.
Thanks Jos for your reply.
I know the solution that you say, is only to be sure that RTF fields does not work on NGClient.
Have there been any updates on using a RTF Area in the NG Client?
Hi Skrizvi,
RTF area is not supported in the NG client and we don’t have plans to support it, as it is no longer a strong standard of the internet.
We recommend that you migrate your data from RTF to HTML and use the HTML Area component for capturing and rendering stylized text. There are converters available for one-time conversion, or this could be scripted to automate lots of data / dynamically migrate if you really need to support RTF capture in a legacy system.
For example:
https://github.com/iarna/rtf-to-html
https://www.npmjs.com/package/rtf2html
sean:
Hi Skrizvi,RTF area is not supported in the NG client and we don’t have plans to support it, as it is no longer a strong standard of the internet.
We recommend that you migrate your data from RTF to HTML and use the HTML Area component for capturing and rendering stylized text. There are converters available for one-time conversion, or this could be scripted to automate lots of data / dynamically migrate if you really need to support RTF capture in a legacy system.For example:
https://github.com/iarna/rtf-to-html
https://www.npmjs.com/package/rtf2html
Hello Sean! I like the npmjs project but I am unsure about how to work with npm inside of servoy. How can I import and use rtf2html? My goal is to have a function I can call within servoy which will take in rtf and output html. I tried the rtf-to-html.js from github but I couldn’t get it to run inside of Servoy.
Hi Skrisvi,
Those libraries will probably not run directly in Servoy. They are more likely compatible to a different JS engine, like NodeJS.
You could probably do the conversion 1x outside Servoy. If you want to run it inside Servoy, then there could be a Java lib that does it.
All java libs can run in Servoy because we use a Java-based JS engine.
There was a project that did some RTF to HTML for outlook integration. This might be easier:
https://github.com/tuanway/servoyMailMerge
Best,
Sean