Update Text Node clone method to clone value as well

pull/332/head
Xin Yao 4 years ago
parent 6aaf351277
commit 1ece2863ed
  1. 2
      lib/src/models/documents/nodes/leaf.dart

@ -211,7 +211,7 @@ class Text extends Leaf {
super.val(text);
@override
Node newInstance() => Text();
Node newInstance() => Text(value);
@override
String get value => _value as String;

Loading…
Cancel
Save