Fix: Issue 1887 (#1892)

* Value setting Stateful toolbar buttons derive from base class

* Rename base class as QuillToolbarBaseValueButton

* Removed deprecated functions

* Move clipboard actions to QuillController

* Fix: collectAllIndividualStylesAndEmbed for result span

* Add: Clipboard toolbar buttons

* Add: test for QuillController clipboard
Dart Formatted

* Fix Issue 1887

---------

Co-authored-by: Douglas Ward <dward@scied.com>
pull/1898/head
AtlasAutocode 11 months ago committed by GitHub
parent 9c2e51ff73
commit 61c129ce04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      lib/src/models/rules/insert.dart

@ -565,8 +565,8 @@ 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.inlineKeys.contains(key)) {
return null;
}
}

Loading…
Cancel
Save