Added more tools to ArticleEditor

This commit is contained in:
Mia Rose Winter 2024-01-24 16:44:28 +01:00
parent 4e9b65bc2e
commit aff7ec5630
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
3 changed files with 52 additions and 12 deletions

View file

@ -75,23 +75,48 @@
</ToolbarButton> </ToolbarButton>
</ToolbarSection> </ToolbarSection>
<ToolbarSection> <ToolbarSection>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('**');" <ToolbarButton onclick="window.insertBeforeAndAfterSelection('**');"
title="@Localizer["Tools_Bold_Tooltip"]"> title="@Localizer["Tools_Bold_Tooltip"]">
<strong>B</strong> <strong>B</strong>
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('*')"
title="@Localizer["Tools_Italic_Tooltip"]">
<em>I</em>
</ToolbarButton> </ToolbarButton>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('~~')" <ToolbarButton onclick="window.insertBeforeAndAfterSelection('*')"
title="@Localizer["Tools_StrikeThrough_Tooltip"]"> title="@Localizer["Tools_Italic_Tooltip"]">
<em>I</em>
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('++')"
title="@Localizer["Tools_Underline_Tooltip"]">
<u>U</u>
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('~~')"
title="@Localizer["Tools_StrikeThrough_Tooltip"]">
<del>@Localizer["Tools_StrikeThrough_Label"]</del> <del>@Localizer["Tools_StrikeThrough_Label"]</del>
</ToolbarButton> </ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('> ', true)" <ToolbarButton onclick="window.insertBeforeAndAfterSelection('==')"
title="@Localizer["Tools_Cite_Tooltip"]"> title="@Localizer["Tools_Mark_Tooltip"]">
<mark>@Localizer["Tools_Mark_Label"]</mark>
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('> ', true)"
title="@Localizer["Tools_Cite_Tooltip"]">
| <em>@Localizer["Tools_Cite_Label"]</em> | <em>@Localizer["Tools_Cite_Label"]</em>
</ToolbarButton> </ToolbarButton>
</ToolbarSection> </ToolbarSection>
<ToolbarSection>
<ToolbarButton onclick="window.insertBeforeSelection('1. ', true)">
1.
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('a. ', true)">
a.
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('A. ', true)">
A.
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('i. ', true)">
i.
</ToolbarButton>
<ToolbarButton onclick="window.insertBeforeSelection('I. ', true)">
I.
</ToolbarButton>
</ToolbarSection>
<ToolbarSection> <ToolbarSection>
<ToolbarButton onclick="window.insertBeforeAndAfterSelection('`')" <ToolbarButton onclick="window.insertBeforeAndAfterSelection('`')"
title="@Localizer["Tools_CodeLine_Tooltip"]"> title="@Localizer["Tools_CodeLine_Tooltip"]">

View file

@ -185,4 +185,10 @@
<data name="Tools_CodeBlock_Tooltip" xml:space="preserve"> <data name="Tools_CodeBlock_Tooltip" xml:space="preserve">
<value>Programmierblock einfügen</value> <value>Programmierblock einfügen</value>
</data> </data>
<data name="Tools_Underline_Tooltip" xml:space="preserve">
<value>Text unterstreichen</value>
</data>
<data name="Tools_Mark_Tooltip" xml:space="preserve">
<value>Den selektierten Text markieren</value>
</data>
</root> </root>

View file

@ -188,4 +188,13 @@
<data name="Tools_CodeBlock_Tooltip" xml:space="preserve"> <data name="Tools_CodeBlock_Tooltip" xml:space="preserve">
<value>Insert program code block</value> <value>Insert program code block</value>
</data> </data>
<data name="Tools_Underline_Tooltip" xml:space="preserve">
<value>Underline text</value>
</data>
<data name="Tools_Mark_Label" xml:space="preserve">
<value>txt</value>
</data>
<data name="Tools_Mark_Tooltip" xml:space="preserve">
<value>Mark the selected text</value>
</data>
</root> </root>