Oddity Copying Some Styles in RTF
I often use Marked to write longer emails (which then end up in Mac Outlook, a necessary evil). To make the emails generated this way appear more "outlook native", I've whipped up a CSS file and placed it into my Custom CSS configuration for Marked. This mostly works fine, however, there is one hiccup.
In this custom CSS, I have a blockquote
style. The
exact definition is:
blockquote {
border-left-style: solid;
border-left-width: 4px;
margin-top: 14px;
margin-bottom: 14px;
padding-left: 11px;
font-family: Cambria;
font-size: 15px;
font-style: italic;
}
This renders perfectly in Marked. However, it seems to have problems when using the "Copy Rich Text" menu choice. When pasted using the rich text copy, the indentation and border decoration is lost. However, if I highlight the text in the Marked window directly and copy it, then subsequent pastes preserve all the formatting.
This happens both when pasting into Outlook (naturally) but also when pasting into a rich text document in TextEdit.
[Also, perhaps of importance, I use Kramdown as my markdown parser for Marked. However, I believe I observed this issue even with Marked's built-in parser.]
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 05 Aug, 2013 07:09 PM
You'll find the same is true of any style with indentation and borders. They don't translate to RTF when copying from a web view. It's an issue I haven't found a workaround for at this point.
Thanks,
Brett
2 Posted by Steve Schreiber on 05 Aug, 2013 08:39 PM
Fair enough. I suspected it was something like that. I currently just copy out of the web view directly as a work around. Thanks.
Brett closed this discussion on 14 Aug, 2013 01:10 AM.