Remove direction button

This commit is contained in:
Aleh Khantsevich
2024-07-02 02:52:56 +02:00
parent 573fe3cad3
commit 1e9d7c9b93
5 changed files with 7 additions and 36 deletions

View File

@@ -137,6 +137,9 @@
<PathIcon Data="{StaticResource OrderedListPathIcon}" /> <PathIcon Data="{StaticResource OrderedListPathIcon}" />
</AppBarToggleButton.Icon> </AppBarToggleButton.Icon>
</AppBarToggleButton> </AppBarToggleButton>
<AppBarSeparator />
<AppBarButton <AppBarButton
x:Name="DecreaseIndentButton" x:Name="DecreaseIndentButton"
Width="48" Width="48"
@@ -157,18 +160,6 @@
<PathIcon Data="{StaticResource IncreaseIndentPathIcon}" /> <PathIcon Data="{StaticResource IncreaseIndentPathIcon}" />
</AppBarButton.Icon> </AppBarButton.Icon>
</AppBarButton> </AppBarButton>
<AppBarSeparator />
<AppBarToggleButton
x:Name="DirectionButton"
Width="48"
Click="DirectionButtonClicked"
Label="Direction"
ToolTipService.ToolTip="Direction">
<AppBarToggleButton.Icon>
<PathIcon Data="{StaticResource ParagraphPathIcon}" />
</AppBarToggleButton.Icon>
</AppBarToggleButton>
<AppBarElementContainer VerticalAlignment="Center"> <AppBarElementContainer VerticalAlignment="Center">
<ComboBox x:Name="AlignmentListView" SelectionChanged="AlignmentChanged"> <ComboBox x:Name="AlignmentListView" SelectionChanged="AlignmentChanged">

View File

@@ -170,11 +170,6 @@ namespace Wino.Dialogs
await InvokeScriptSafeAsync("editor.execCommand('outdent')"); await InvokeScriptSafeAsync("editor.execCommand('outdent')");
} }
private async void DirectionButtonClicked(object sender, RoutedEventArgs e)
{
await InvokeScriptSafeAsync("document.getElementById('directionButton').click();");
}
private async void AlignmentChanged(object sender, SelectionChangedEventArgs e) private async void AlignmentChanged(object sender, SelectionChangedEventArgs e)
{ {
var selectedItem = AlignmentListView.SelectedItem as ComboBoxItem; var selectedItem = AlignmentListView.SelectedItem as ComboBoxItem;

View File

@@ -12,7 +12,8 @@ const editor = Jodit.make("#editor", {
"showPlaceholder": false, "showPlaceholder": false,
"uploader": { "uploader": {
"insertImageAsBase64URI": true "insertImageAsBase64URI": true
} },
"enter": "DIV",
}); });
// Handle the image input change event // Handle the image input change event

View File

@@ -263,6 +263,8 @@
</ToggleButton.Content> </ToggleButton.Content>
</ToggleButton> </ToggleButton>
<AppBarSeparator />
<Button <Button
x:Name="DecreaseIndentButton" x:Name="DecreaseIndentButton"
Height="32" Height="32"
@@ -285,19 +287,6 @@
</Button.Content> </Button.Content>
</Button> </Button>
<AppBarSeparator />
<ToggleButton
x:Name="DirectionButton"
Height="32"
Click="DirectionButtonClicked">
<ToggleButton.Content>
<Viewbox Width="16">
<PathIcon Data="{StaticResource ParagraphPathIcon}" />
</Viewbox>
</ToggleButton.Content>
</ToggleButton>
<ComboBox <ComboBox
x:Name="AlignmentListView" x:Name="AlignmentListView"
Width="120" Width="120"

View File

@@ -206,11 +206,6 @@ namespace Wino.Views
await InvokeScriptSafeAsync("editor.execCommand('outdent')"); await InvokeScriptSafeAsync("editor.execCommand('outdent')");
} }
private async void DirectionButtonClicked(object sender, RoutedEventArgs e)
{
await InvokeScriptSafeAsync("document.getElementById('directionButton').click();");
}
private async void AlignmentChanged(object sender, SelectionChangedEventArgs e) private async void AlignmentChanged(object sender, SelectionChangedEventArgs e)
{ {
var selectedItem = AlignmentListView.SelectedItem as ComboBoxItem; var selectedItem = AlignmentListView.SelectedItem as ComboBoxItem;