From 3a53c4fc9bfcc5246cdb851851b8811bf0633d0a Mon Sep 17 00:00:00 2001 From: CatHood0 Date: Thu, 25 Jul 2024 06:26:39 -0400 Subject: [PATCH] added doc comments --- lib/src/document/nodes/line.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/document/nodes/line.dart b/lib/src/document/nodes/line.dart index d4e07703..71119347 100644 --- a/lib/src/document/nodes/line.dart +++ b/lib/src/document/nodes/line.dart @@ -527,7 +527,10 @@ base class Line extends QuillContainer { // returning Embed.kObjectReplacementCharacter for the buffer final action = provider.getCopyCutAction(embed.type); final data = action.call(embed.data); - if (data is String && data != Embed.kObjectReplacementCharacter) { + // This conditional avoid an issue where the plain data copied + // to the clipboard, when it is pasted on the editor + // the content has a unexpected behaviors + if (data != Embed.kObjectReplacementCharacter) { buffer.write(data); return remaining; } else {