Improve: subscript and superscript should now work for all languages and characters. (#1909)
* 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 * Subscript and Superscript * Translation Justify * Translation alignJustify * Fix: Translation ko * Fix: Translation en-US --------- Co-authored-by: Douglas Ward <dward@scied.com>pull/1919/head
parent
8fe65f1d10
commit
62c655b880
43 changed files with 224 additions and 10 deletions
@ -1,8 +1,14 @@ |
|||||||
class QuillControllerConfigurations { |
class QuillControllerConfigurations { |
||||||
const QuillControllerConfigurations({this.onClipboardPaste}); |
const QuillControllerConfigurations( |
||||||
|
{this.onClipboardPaste, this.requireScriptFontFeatures = false}); |
||||||
|
|
||||||
/// Callback when the user pastes and data has not already been processed |
/// Callback when the user pastes and data has not already been processed |
||||||
/// |
/// |
||||||
/// Return true if the paste operation was handled |
/// Return true if the paste operation was handled |
||||||
final Future<bool> Function()? onClipboardPaste; |
final Future<bool> Function()? onClipboardPaste; |
||||||
|
|
||||||
|
/// Render subscript and superscript text using Open Type FontFeatures |
||||||
|
/// |
||||||
|
/// Default is false to use built-in script rendering that is independent of font capabilities |
||||||
|
final bool requireScriptFontFeatures; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue