-
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
Inserting graphic in the text #87
Comments
Hi Maher, this is not currently possible, but it is somewhat possible to add this functionality. TextFlow which is used by Adding this feature to RichTextFX would certainly change some of the current APIs, but I don't see it as a problem. Someone else has asked about this feature before, when they wanted to insert emoticons in the text, but I haven't heard from them since. |
Thanks. So in theory it would be possible to add labels or text fields to a Would this be something that you can consider? On Thu, Oct 9, 2014 at 1:48 PM, TomasMikula notifications@github.com
|
Yes, it would then be possible to add labels, text fields and in theory even a whole another text area. But remember, that the whole nested node would count as one character, i.e. its range in the parent text area would be [n, n+1) for some integer n. It is something that has been on my mind for a long time (it's noted as a possible enhancement in the README), but I personally haven't needed this myself, so I had little incentive to implement it. |
I think this feature could be used to implement code folding since the inserted node could hold the text it has to replace and could be rendered as [...] I guess this could be something I'll look into after the paragraph style feature. |
I don't think this is a good way to implement code folding. For one, it would mess up text indices and line numbers. I have another idea how to implement code folding in mind, using paragraph graphic and custom EditableStyledDocument. It will however require some preparatory refactoring first. |
This was implemented by #356 |
Hi Tomas,
Is there a way for me to assign a graphic to a line.
I would like to be able to add a line across the width of text area.
For example, when I concatenate multiple StyledDocs into a single text area, I would like them to be separated by lines.
Please let me know if there is a way for me to explore this.
Best,
Maher
The text was updated successfully, but these errors were encountered: