You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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":
My guess is this means it can only be used when importing with NSPlainTextDocumentType.
The text was updated successfully, but these errors were encountered: