update default text alignment values (#21443)
This commit is contained in:
parent
c0ed6bc8cd
commit
7a1ae9e350
@ -9,6 +9,8 @@ import {
|
||||
DefaultFillStyle,
|
||||
DefaultFontStyle,
|
||||
DefaultSizeStyle,
|
||||
DefaultHorizontalAlignStyle,
|
||||
DefaultVerticalAlignStyle,
|
||||
InstancePresenceRecordType,
|
||||
setDefaultUiAssetUrls,
|
||||
setDefaultEditorAssetUrls,
|
||||
@ -552,6 +554,9 @@ const Whiteboard = React.memo((props) => {
|
||||
setTlEditor(editor);
|
||||
setTldrawAPI(editor);
|
||||
|
||||
DefaultHorizontalAlignStyle.defaultValue = isRTL ? 'end' : 'start';
|
||||
DefaultVerticalAlignStyle.defaultValue = 'start';
|
||||
|
||||
editor?.user?.updateUserPreferences({ locale: language });
|
||||
|
||||
const colorStyles = [
|
||||
|
Loading…
Reference in New Issue
Block a user