JDK-8301121 : RichTextArea Control (Incubator)
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Priority: P2
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2023-01-25
  • Updated: 2024-09-06
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.
Other
tbdUnresolved
Related Reports
Blocks :  
Blocks :  
Blocks :  
Duplicate :  
Relates :  
Relates :  
Description
JavaFX is missing a rich text control like JEditorPane/StyledDocument.

While a number of open source projects exists [0], [1], it would be nice to have such a control included in the core, which either supports most of the desired functionality out of the box, or can be extended easily to support additional requirements.

The exact list of features is TBD at this moment, but it should be possible to:

- use large (but narrow) text models
- easily extend the base control to add custom elements, line numbers, markers, etc.
- custom highlights and spell checker squiggly lines
- keyboard and mouse navigation, with possibility of custom navigation (such as skipping non-editable sections)
- rich text copy/paste
- "size to content" mode that turns off the scroll bars
- custom tab size (custom tab stops will not be supported)
- multiple views connected to the same model
- styling via CSS or direct style
- single selection (multiple selection or rectangular selection will not be supported) 

The first step is to analyze possible missing APIs - see JDK-8300569


NOTES

Third party projects:
[0] https://github.com/FXMisc/RichTextFX
[1] https://github.com/gluonhq/rich-text-area
[2] https://github.com/andy-goryachev/FxEditor

TODO
- don't forget to update javadoc for TextArea where it mentions rich text editing.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1524 Date: 2024-07-30 21:01:15 +0000
30-07-2024