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 {