Skip to content
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

Copy Text With Style. #17

Closed
ghost opened this issue Mar 3, 2014 · 5 comments
Closed

Copy Text With Style. #17

ghost opened this issue Mar 3, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 3, 2014

Request: Ability to copy a text range with its style.

@TomasMikula
Copy link
Member

I added methods to query and insert rich-text. For example

area2.append(area1.getDocument());

appends the content of area1 including all style information to the end of area2.

See also other methods returning or taking StyledDocument: subDocument, insert, replace, replaceSelection.

Note, however, that copy (Ctrl+C or area.copy()) still copies only plain text.

@ghost
Copy link
Author

ghost commented Mar 3, 2014

Thanks will give it a go!
On Mar 3, 2014 12:58 PM, "TomasMikula" notifications@github.com wrote:

I added methods to query and insert rich-text. For example

area2.append(area1.getDocument());

appends the content of area1 including all style information to the end
of area2.

See also other methods returning or taking StyledDocument: subDocument,
insert, replace, replaceSelection.

Note, however, that copy (Ctrl+C or area.copy()) still copies only plain
text.

Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-36558829
.

@ghost
Copy link
Author

ghost commented Mar 7, 2014

Hi Tomas, Just wanted to report the getDocument and append methods work here! thanks :)

@TomasMikula
Copy link
Member

Good to hear that!

@TomasMikula
Copy link
Member

It will be in the next release. You can give it a try if you build from source:

git clone https://github.com/TomasMikula/RichTextFX.git
cd RichTextFX
gradle RichText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant