Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Copy and Paste Text from a Google Doc

Hi, I'm having a bit of trouble where I recently rewrote all of my D&D homebrew rules into a google doc file, and now I want to put it on my Roll20 game where my previous homebrew rules are written. My problem is when I select a block of text and copy it into a handout in roll20 it seems to retain the text-colour from the google doc file. This makes it so the text will not change when being viewed in dark mode or light mode. Is there a way to copy and paste text like this and erase the colour-information on roll20? Not looking forward to the idea of re-typing and re-formatting all the text from my doc. Thanks in advance for any help!
Hi, I was querying some messed up handouts last night and several of the responses were asking about whether I had cut n paste from external sources.  Keithcurtis amongst others posted this " Usually that appears because someone has copied and pasted text from another source. The text editor in Roll20 is HTML-based, and if someone copies from an already styled source, there can be conflicts. Selecting the problem text and hitting the Remove Formatting (eraser) button in the text editing tools can usually sort out most of these issues." One other thing to look out for was black text where it should be "default" as this won't look right in dark mode either - again fixable from the edit screen
1663769997
Kraynic
Pro
Sheet Author
When you paste your copied text into Roll20, use the keyboard shortcut "control + shift +V".  That should remove any pre-existing text format and paste it in as the default font, size, and color. So far, that has been working for me anyway.
1663770924
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi KitZune! Using the shift key when pasting will paste the contents as plain text. You would have to reformat paragraph level formatting like headers, character formatting like bold/italic and such. You can also use the remove formatting button as described above. That should remove all character-based formatting, but retain basic headers. You might have problems with the first paragraph, especially if you are trying this in a previously-created document. A couple of backspaces typed before pasting anything into a field that looks otherwise blank should remove any leftover invisible formatting characters from a previous paste. Google Docs and Roll20 Text Editor are both HTML-based editors. As such, they must make hard-coded choices on formatting, and these choices will conflict. In theory, a script might be written to convert one to the other, but it would be very specific (Google Docs only, for example), and likely require significant expertise. And there's a good chance it would break as soon as either company changed their spec. There are some other options: Export the Google Doc to a pdf, and upload that to Roll20. You would get high fidelity at the cost of editability. Export the Google Doc to Markdown (I think there are converters out there.) Then display the text in a Roll20 handout using Stephen S's Markdown script. This can give you really beautiful styling, but it would ignore light/dark mode.
Thank you all for such thorough replies! Really helped me from just committing to re-writing a 50 page document. Keithcurtis, thank you for the above-and-beyond response. Answering not only my question, but potential future questions. I started making this document with the aim of eventually having a PDF to use in roll20, but for now copy-pasting the text was a stop-gap before I've completed the PDF. Thank you all again!