Fix wording

pull/1315/head
Cheryl 2 years ago
parent 0ab6027fa8
commit 5ff09327db
  1. 3
      CHANGELOG.md
  2. 9
      lib/src/models/rules/delete.dart

@ -4,9 +4,6 @@
# [7.2.12] # [7.2.12]
- Add support for copy/cut select image and text together. - Add support for copy/cut select image and text together.
# [7.2.12]
- Add support for copy/cut select image and text together.
# [7.2.11] # [7.2.11]
- Add affinity for localPosition. - Add affinity for localPosition.

@ -109,10 +109,9 @@ class PreserveLineStyleOnMergeRule extends DeleteRule {
} }
} }
/// This rule applies to video, not image /// Prevents user from merging a line containing an embed with other lines.
/// /// This rule applies to video, not image.
/// Prevents user from merging a line containing an video embed with other /// The rule relates to [InsertEmbedsRule].
/// lines, Corresponds [InsertEmbedsRule].
class EnsureEmbedLineRule extends DeleteRule { class EnsureEmbedLineRule extends DeleteRule {
const EnsureEmbedLineRule(); const EnsureEmbedLineRule();
@ -124,7 +123,7 @@ class EnsureEmbedLineRule extends DeleteRule {
var op = itr.skip(index); var op = itr.skip(index);
final opAfter = itr.skip(index + 1); final opAfter = itr.skip(index + 1);
//Only video embed need can't merging a line. // Only video embed occupies a whole line.
if (!_isVideo(op) || !_isVideo(opAfter)) { if (!_isVideo(op) || !_isVideo(opAfter)) {
return null; return null;
} }

Loading…
Cancel
Save