fix error style when input chinese japanese or korean (#1078)

pull/1079/head
Anti-Core 2 years ago committed by GitHub
parent 13f0a2c702
commit 11f65f9872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/src/models/rules/insert.dart

@ -477,7 +477,7 @@ class PreserveInlineStylesRule extends InsertRule {
}
final itr = DeltaIterator(document);
final prev = itr.skip(index);
final prev = itr.skip(len == 0 ? index : index + 1);
if (prev == null ||
prev.data is! String ||
(prev.data as String).contains('\n')) {

Loading…
Cancel
Save