JDK-8090216 : HTMLEditor: font bold doesn't work when an indent is set
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u40,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-05-12
  • Updated: 2017-01-30
  • Resolved: 2016-08-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u131Fixed 9Fixed
Description
Font bold button doesn't work when an indent is set for the text.

To reproduce, try the following:
1. Run Ensemble8.jar.
2. Go to Controls -> HTMLEditor sample.
3. Select a portion of text, and press bold (B) button. The text becomes bold (works with default font - Segoe UI).
4. Now press an indent button (its graphic is four lines with an arrow to the right).
5. Select another portion of text, and press bold button. Nothing happens.
Comments
Changeset: 556b8e09a884 Author: mbilla Date: 2016-08-04 18:38 +0530 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/556b8e09a884
04-08-2016

I checked HTMLEditor APIs (also inherited APIs from javafx.scene.Node and javafx.scene.control.Control) and currently there are no public APIs available to set Bold/Intent.
04-08-2016

lgtm. Is it possible to add a regression test for this?
04-08-2016

+1
03-08-2016

webrev: http://cr.openjdk.java.net/~mbilla/8090216/webrev.00/ Root cause: When we click on beginning of text line, we receive below values in updateToolBarState (). formatValue = htmlTag = <> comboFormatValue = null format = Paragraph AND when we click on Indent, below values are received: formatValue = blockquote htmlTag = <blockquote> comboFormatValue = null format = Paragraph Currently "blockquote" is not handled for indent case and hence subsequent bold is not working.
02-08-2016

Removing the samples component (it is no longer valid to have more than one component anyway). This is either a WebView bug or a Graphics bug.
12-05-2015