Skip to content

Adding NSAttributedString using paste() #240

Open
@karlmira

Description

@karlmira

I would like to insert an NSAttributedString at the current cursor position. This should be possible with the paste() function.
How do I do this?

let insertion = RichTextInsertion<NSAttributedString>(
	content: attributedList,
	index: context.selectedRange.location,
	moveCursor: true
)
										
context.paste(insertion)

won't do anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions