Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Enable HTML in String Field
Enable HTML in String Field [message #1830254] Wed, 22 July 2020 03:30 Go to next message
Eclipse UserFriend
Hello,
Is it possible to enable HTML in String Field and how to do it ?
I have tried
@Override
protected String getConfiguredFieldStyle() {
// TODO Auto-generated method stub
return IFormField.PROP_LABEL_HTML_ENABLED;
}
and this is not working.
Kind Regards
Re: Enable HTML in String Field [message #1830257 is a reply to message #1830254] Wed, 22 July 2020 03:57 Go to previous messageGo to next message
Eclipse UserFriend
What is the use case for this method, currently I do not think there is such method. For the getConfiguredFieldStyle I believe only org.eclipse.scout.rt.client.ui.form.fields.IFormField.FIELD_STYLE_CLASSIC or org.eclipse.scout.rt.client.ui.form.fields.IFormField.FIELD_STYLE_ALTERNATIVE are supported.

For an AbstractLabelField (used to display text from the server) the method org.eclipse.scout.rt.client.ui.form.fields.labelfield.AbstractLabelField.getConfiguredHtmlEnabled() may be used however (read the javadoc, should not be true for user input - might be dangerous otherwise). For an AbstractStringField, the user would not be able to enter formatted content anyways?

[Updated on: Wed, 22 July 2020 03:58] by Moderator

Re: Enable HTML in String Field [message #1830305 is a reply to message #1830257] Thu, 23 July 2020 02:39 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
ths use cas is as follow, I am trying to make a tool to create spécific mail, I would like to insert a table inside the mail and in the same case allow to modify the text. LabelField can not be used for me for this use case for the only reason is not editable.
Kind Regards
Re: Enable HTML in String Field [message #1830310 is a reply to message #1830305] Thu, 23 July 2020 03:47 Go to previous message
Eclipse UserFriend
The open source edition of Scout does not provide widgets for rich-text or HTML-editing. Since these widgets tend to be rather complex I'd suggest you integrate an existing solution like Tiny MCE, CKEditor or Froala as a custom-widget in your project. In our commercial Scout projects we've built e-mail integration with one of these editors (which need to be licensed). You could also try to integrate Squire, which is open source. Depending on your requirements, you should prepare for a lot of work (weeks) to fully integrate all the features you need from these editors in your Scout application (think of drag&drop, copy/paste from Word, support for images, attachments, dealing with different CSS-Styles, etc.)

[Updated on: Thu, 23 July 2020 04:29] by Moderator

Previous Topic:Mars - DataSourceSecurityFilter for Login
Next Topic:API support
Goto Forum:
  


Current Time: Tue Jul 08 17:42:30 EDT 2025

Powered by FUDForum. Page generated in 0.04413 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top