Skip to content

explanation #1

Description

@TomSwift

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions