I’ve been using Scrivener for the last year or so and have been copy/pasting into websites (i.e. reddit, tumblr, AO3) with all formatting preserved, and I’ve just made the switch to Firefox and have found that it takes the formatting (paragraph breaks, italics) out. I asked and was linked to this, which does seem to be exactly the issue, but the fix listed is for Windows, and I can’t seem to find an equivalent setting for Mac. Does it exist? I can see the ‘inline CSS’ setting, but not the ‘write html clipboard data’ checkbox.
I’m aware of the other work arounds (copy and paste into another program such as LibreOffice or Word, or go back to using Chrome for that specific purpose), which are fine, but not ideal, so I thought I’d ask if anyone else on Mac has had this issue and found a way to change the setting in Scrivener. Thanks!
Particularly with google docs. I either eneded up pasting plain text, or I ended up pasting the html format of the plain text IN HTML – the code.
#!/bin/bash
osascript -e ‘set theData to (the clipboard as «class RTF »)’
-e ‘set fileRef to open for access (POSIX file “/tmp/scriv.rtf”) with write permission’
-e ‘set eof fileRef to 0’
-e ‘write theData to fileRef as «class RTF »’
-e ‘close access fileRef’
textutil -convert html /tmp/scriv.rtf -output /tmp/scriv.html
osascript -e ‘set the clipboard to (read (POSIX file “/tmp/scriv.html”) as «class HTML»)’
The above script named scriv2html is what I use.
Copy in scrivener.
run the script in a terminal window. since I store it in ~/bin, I run it as ~/bin/scriv2html
Then switch to the place where I need it, and hit ‘command-V’ to paste.