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

explanation #1

Open
TomSwift opened this issue Jul 2, 2014 · 0 comments
Open

explanation #1

TomSwift opened this issue Jul 2, 2014 · 0 comments

Comments

@TomSwift
Copy link

TomSwift commented Jul 2, 2014

I have the same issue. My workaround is to inject a tag with appropriate styles around my HTML fragment.

The apple docs claim that NSDefaultAttributesDocumentAttribute is for "plain files":

NSDefaultAttributesDocumentAttribute
@"DefaultAttributes", NSDictionary containing attributes to be applied to plain files. Used by reader methods. This key in options can specify the default attributes applied to the entire document contents. Upon return, the document attributes can contain this key indicating the actual attributes used.

My guess is this means it can only be used when importing with NSPlainTextDocumentType.

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

No branches or pull requests

1 participant