diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 894390de2..39f8fb883 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -475,6 +475,9 @@ var kDelegateRespondsTo_textShouldBeginEditing if (!stringForPasting) return; + if (![stringForPasting isKindOfClass:[CPAttributedString class]]) + stringForPasting = [[CPAttributedString alloc] initWithString:stringForPasting attributes:nil]; + var shouldUseSmartPasting = [self _shouldUseSmartPasting]; if (shouldUseSmartPasting)