Skip to content

Releases: FXMisc/RichTextFX

0.9.1

16 Jul 16:17
357095a

Choose a tag to compare

This is my last release. See #768 for more details.

See the Changelog

0.9.0

12 Apr 22:20
15eb602

Choose a tag to compare

See the Changelog

v0.8.2

29 Jan 19:01
7015a2a

Choose a tag to compare

Minor release

See the CHANGELOG

v0.8.1

27 Oct 06:07

Choose a tag to compare

Minor release that adds documentation to all public classes and methods as well as package-info.java files.

See CHANGELOG

v0.8.0

20 Oct 20:43

Choose a tag to compare

See the CHANGELOG

Support for Java 9 is included in this release.

0.7 Milestone 5

02 Apr 23:11

Choose a tag to compare

Fixes the regression in 0.7-M4: #472
However, another regression was found in this release shortly after being released: #481

0.7 Milestone 4

27 Mar 05:22

Choose a tag to compare

Regression

  • When user types a key to insert a character into the document, the caret is not moved to be in front of that just-inserted character. Instead, the caret stays at its original position, reversing any inserted words/phrases via user keyboard input (See #472). To work around this, override the replace method:
public void replace(int from, int to, StyledDocument<PS, SEG, S> document) {
    if (from == to && document.length() == 0) {
        return; // ignore changes that do nothing. Or TextChange throws IllegalArgumentException
    }
    super.replace(from, to, document);
    int newCaretPos = getCaretPosition() + document.length();
    selectRange(newCaretPos, newCaretPos);
}

New features

  • Expose API for "scroll[X/Y]By" to scroll view by specific amount
  • Add "show()" methods to force viewport to display a specific line at top, bottom or within viewport
  • Better support multi-line wrapped paragraphs API
    • Added method to get the number of lines a wrapped multi-line paragraph spans
    • Renamed "line" methods to "paragraph" methods and implement actual "line" methods
    • Shift + Home/End moves caret to start of line, not paragraph
  • Add API for caret/selection bounds on screen
  • All areas are now FXML-ready

Fixed Bugs

  • Fixed "-fx-highlight-fill" CSS issue
  • Fixed "-fx-caret-blink-rate" CSS issue
  • Fixed regression: RTFX supports ContextMenu as before
  • Fixed horizontal scrollbar not working issue
  • Fixed Exception thrown when trying to merge a change that inserts text with a change that deletes that text
  • Fixed LineNumberFactory's type to use base area (GenericStyledArea) rather than StyledTextArea

Refactoring or Updates

  • Default mouse behavior has been reconfigured to be more overridable-friendly. See GenericStyledArea's javadoc for details.
  • Javadoc to Flowless & ReactFX links have been fixed
  • ".virtual-flow" removed from "styled-text-area.css"
  • "positionCaret()" has been renamed to "displaceCaret()" and its javadoc better clarifies what it does
  • Popup API fully deprecated
  • ReadMe updated & dead links fixed
  • RichText demo updated to use interface for better memory usage

0.7 Milestone 3

26 Dec 07:02

Choose a tag to compare

0.7 Milestone 3 Pre-release
Pre-release

Major addition in this milestone is support for custom inline objects.

0.7 Milestone 2

18 Jul 22:32

Choose a tag to compare

  • Moved model classes into a separate package.
  • Support for styled underline.
  • Support for custom caret visibility criteria.
  • Exposed SimpleEditableStyledDocument, the default implementation of EditableStyledDocument.
  • CSS properties introduced by RichTextFX renamed to start with -rtfx.
  • Added convenience methods using row/col coordinates.

Thanks to all the contributors!

0.7 Milestone 1

13 May 05:38

Choose a tag to compare

Major changes:

  • Support for paragraph-level styles.
  • Not using JavaFX skin architecture anymore. We came to the conclusion that skins bring more problems than benefits for non-trivial controls. Not using skins will allow us to add/expose more view-related features.
  • The scroll-pane has been decoupled from the main content. To get scroll-bars, one now needs to wrap StyledTextArea in a VirtualizedScrollPane.
  • We moved to a new version of WellBehavedFX, 0.3. This changes the way event handlers are overridden. Please refer to a demo for an example.
  • It is now possible to use custom implementation of EditableStyledDocument (the content model of StyledTextArea). This provides better support for cases when your internal content is richer than just a list of styled paragraphs (e.g. abstract syntax tree). We expect more work to be done to ease the implementation of custom EditableStyledDocuments.

There are additional smaller fixes and new features.

Thanks to the contributors @JordanMartinez, @MewesK, @jobernolte.