@ -975,16 +975,24 @@ class QuillRawEditorState extends EditorState
}
prevNodeOl = attrs [ Attribute . list . key ] = = Attribute . ol ;
var nodeTextDirection = getDirectionOfNode ( node ) ;
/ / verify if the direction from nodeTextDirection is the default direction
/ / and watch if the system language is a RTL language and avoid putting
/ / to the edge of the left side any checkbox or list point / number if is a
/ / RTL language
if ( nodeTextDirection = = TextDirection . ltr & &
_textDirection = = TextDirection . rtl ) {
nodeTextDirection = TextDirection . rtl ;
}
if ( node is Line ) {
final editableTextLine = _getEditableTextLineFromNode ( node , context ) ;
result . add ( Directionality (
textDirection: getDirectionOfNode ( node ) , child: editableTextLine ) ) ;
textDirection: nodeTextDirection , child: editableTextLine ) ) ;
} else if ( node is Block ) {
final editableTextBlock = EditableTextBlock (
block: node ,
controller: controller ,
textDirection: getDirectionOfNode ( node ) ,
textDirection: nodeTextDirection ,
scrollBottomInset: widget . configurations . scrollBottomInset ,
horizontalSpacing: _getHorizontalSpacingForBlock ( node , _styles ) ,
verticalSpacing: _getVerticalSpacingForBlock ( node , _styles ) ,
@ -1011,7 +1019,7 @@ class QuillRawEditorState extends EditorState
) ;
result . add (
Directionality (
textDirection: getDirectionOfNode ( node ) ,
textDirection: nodeTextDirection ,
child: editableTextBlock ,
) ,
) ;