-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paragraph-level styles #6
Comments
Currently, The StyledTextArea constructor takes the initial (default) style and a function that is capable of applying that opaque style object to a To add support for paragraph-level styles, we need to add a second type parameter The addition of the second type parameter will propagate down to The change is not going to be backwards compatible. However, the users of some concrete subclasses such as |
Implemented the proposed paragraph style feature (FXMisc#6)
So this is now mostly implemented. Among the remaining things to do is to support copying to the clipboard including paragraph style. |
I was testing out the demo, and it seems another thing to support is the UndoManager. As of now, it doesn't undo/redo the paragraph's style. After the program started, I typed some text, and then changed the line's background color. After undoing my action, the text was deleted but the line's background color remained the same. When I redo my action, the text reappears but the line's background color returns to the initial white color. The same basic thing happened with the paragraph's alignment values. When I change the alignment to Center and then click Undo, the text is deleted but the alignment remains at Center. When I redo, the text reappears but the text is aligned to the left despite the Alignment Center button still appearing to be pressed. |
Copy&Paste is now fixed in master. |
Undo/Redo now seems to work, too. |
To support rich-text editors, it should be possible to assign paragraph-level styles, such as alignment, heading, ...
The text was updated successfully, but these errors were encountered: