| Summary: | [FormText] [Client] FormText with bold style URL client script failed | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Andrei Neshcheret <a.nesheret> |
| Component: | Other | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.3 | ||
| Target Milestone: | 2.3 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Fixed with change https://git.eclipse.org/r/26226. |
Client java-script failed when using FormText with parseTags:true and expandURLs:true --- code snippet package ru.infinet.rap.tests; import org.eclipse.rap.rwt.application.AbstractEntryPoint; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.forms.widgets.FormText; public class FormTextTestEntryPoint extends AbstractEntryPoint { @Override protected void createContents( Composite parent ) { final FormText text = new FormText( parent, SWT.WRAP ); text.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 1, 1 ) ); text.setText( "<form><p><b>http://www.w3.org</b></p></form>", true, true ); } } --- Result is Error: Error: Operation "set" on target "w3" of type "org.eclipse.ui.forms.widgets.FormText" failed: 'undefined' is not a function (evaluating 'widgetManager.setFont( textHyperlink, font[ 0 ], font[ 1 ], font[ 2 ], font[ 3 ] )') Properties: hyperlinkSettings = 3,0,0,255,255, ...