restore insert check for blocked keys

pull/1893/head
Mike Allen 11 months ago
parent 9c2e51ff73
commit b9975cb273
  1. 5
      lib/src/models/rules/insert.dart

@ -565,8 +565,9 @@ class PreserveInlineStylesRule extends InsertRule {
if ((prev.data as String).endsWith('\n')) {
if (prev.attributes != null) {
for (final value in prev.attributes!.values) {
if (!(value as Attribute).isInline) {
for (final key in prev.attributes!.keys) {
if (Attribute.blockKeys.contains(key) ||
!(prev.attributes![key] as Attribute).isInline) {
return null;
}
}

Loading…
Cancel
Save