1

I am not sure whether this question is a good fit for this site, but if it is not, please let me know and I will take it down.

If it is off-topic, some general info on where I can look for these answers would be greatly appreciated.

I am wondering how the data that determines how text is to be formatted is stored. For example, if I format some text in Bold and Italic in Microsoft Word, I can paste it into google docs and the formatting will stay the same, but If I paste it in here, it will loose its formatting. I am wondering if this is because google docs is aware of the formatting used by Word and it converts it, or if they use the same type of formatting and there is some set of standards.

asked Dec 4, 2014 at 18:38
1

2 Answers 2

1

Some applications, among which LibreOffice at Linux, use multiple clipboards if I'm not mistaken.

The clipboard is the place where things are temporarily stored when pressing CTL+C, and of LibreOffice I know it saves it in different clipboards, in different formats. These formats vary from plain-text to rich and might even include images.

There's also a function called Paste special... in LibreOffice, which allows you to choose how you want to paste the information in the clipboard.

(what I'm saying might not be 100% correct - but I believe it is) I know you're using Microsoft Word as an example, so Widows might be a whole other world, but I hope it was of some help.

answered Dec 4, 2014 at 20:47
0

When you paste it here (TEXTAREA), the browser looks only at the plain text flavor of the clipboard.

When you paste it in google docs ("content editable"), the browser looks at the rich text flavor of the clipboard.

answered Dec 5, 2014 at 13:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.