Customers of my solutions would like to create formatted text in the smart client and print it out or send it by Fax (as jasperReport).
For that I create a form with a field as display type RTF_AREA and also a report with a field as RTF format. This works, but tab stops and blanks are not equal in the report.
Besides the formatting and text creating/editing options in the Servoy client are rather worst… The displayed font in the text editor menue is differnt to active font in the field and so on.
My question is:
How can I build (integrate) a texteditor with basic functions (setting fonts, styles, tab stops,…) into the Servoy client and get printed what I see?
Implementing a decent rtf solution has never been really possible with Servoy’s rtf field. Coming out has always been a problem as you’re finding and going in is just as problematic (users pasting in something complicated from MS Word or Outlook for example).
After working on CMS projects for quite awhile now, we’ve even moved away from html fields and close relatives (TinyMCE and such) for data entry. Too much latitude for the user.
We’ve moved completely to markdown for formatted data entry. Use a regular text area to input data and onFieldExit show results in a non-editable html area. Formatting nuance is handled in the style sheet. You have to roll up a markdown library (many out there) to make this work.
Been no push-back – users love it. And it saves on the never-ending hassle of dealing with crappy data entry.
@david
I took a look on markdown … and for me it seems to be a little bit too complicate for my customers solution and does not what I want.
I would like to have an integrated Texteditor with basic functions (like TextEdit on Mac or Notepad on Win) in Servoy for formattable rich text to create jasperreports as what I see on the edit form.
Is it possible to get (create) this as a bean?
I’m still looking for a solution to create simple formatted text (style, tab stops, fonts) in the Smart Client and get what you see as output with JasperReport.
Normally I would like to prefer the html-editor of The BrowserSuite, but the plugin ist not working on Mac OS X and Java 7.
I also get this hint from Patrick T., but I don’t understand how “svyJFXWebView” can help me to develop a text area in Servoy for individual formatting text, typed by customers?
Customers would like to have the possibility in their solution for writing and formatting individual text (e.g. for letters, headers + footers on offers or invoices,…) without using a seperate application like MS Word, Pages, TextEdit and so on.
in this webpanel you can integrate for example: (html) tinyMCE editor. The same that Servoy is using for web-client.
by scripting the configuration fro tinyMCE you have total control in how the editor works, and which buttons are available.
Hi Harjo,
if you have made this, would you please so kind to give me an example how to I get this running?
It’s currently a little bit difficult for me and I’m struggeling.
I didn’t say that it was easy, but with a little bit of effort and html-knowledge, it is doable.
We used the component not for an html-editor, but for some googleMaps and other html-web-components, used in the smart-client.
You have to read-in into the wiki, on howto setup this…
You can do it! Don’t give up!
Hi Harjo,
thank you again for your support!
I think I will get this working, but I’m struggeling on the first step: Installing the svy Module. I can’t find any documentation about that… This is the main problem for me…
Regards
Thomas
Hi David,
this can be, but I don’t understand what this has to do with the missing documentation on Servoy GitHub?
I can download the svyJFXWebView Module, but how can I integrate/install it?
Regards
Thomas
You have to add svyJFXWebView and svyUtils (as well from Servoy GitHub) as modules to your solution.
Then you put a tabless panel to a form and call
var webView = new scopes.svyJFXWebView.WebViewPanel(elements.webView); // elements.webView is your tab panel
webView.load(urlToYourTinyMCEInstallation);
LXS:
You have to add svyJFXWebView and svyUtils (as well from Servoy GitHub) as modules to your solution.
Hi Alexander,
I have downloaded the svyJFXWebView from Servoy GitHub, but how can I add this as module in my solution?
I can’t import this as a solution and than add as a module because it is a folder with objects and not a solution file.
Once more, I’m struggeling on the first step to add the module in my solution.