From 7908fee6a73bcd6f44ae495f2a1a268778605219 Mon Sep 17 00:00:00 2001 From: liuhui Date: Mon, 16 May 2022 16:12:40 +0800 Subject: [PATCH] let the DTTextAttachment be a subclass of the NSTextAttachment --- Core/Source/DTTextAttachment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Source/DTTextAttachment.h b/Core/Source/DTTextAttachment.h index 47d172af3..fb4520d1b 100644 --- a/Core/Source/DTTextAttachment.h +++ b/Core/Source/DTTextAttachment.h @@ -75,7 +75,7 @@ typedef NS_ENUM(NSUInteger, DTTextAttachmentVerticalAlignment) /** An object to represent an attachment in an HTML/rich text view. */ -@interface DTTextAttachment : NSObject +@interface DTTextAttachment : NSTextAttachment { CGSize _displaySize; // the display dimensions of the attachment CGSize _originalSize; // the original dimensions of the attachment