added doc comments

pull/2067/head
CatHood0 9 months ago
parent 27f5d5c63e
commit 3a53c4fc9b
  1. 5
      lib/src/document/nodes/line.dart

@ -527,7 +527,10 @@ base class Line extends QuillContainer<Leaf?> {
// 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 {

Loading…
Cancel
Save