Skip to content

Commit

Permalink
add user view of using text templates
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianMauz committed Oct 13, 2023
1 parent 04fbd4a commit 3f11268
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion docs/eln/ui/rich_text_editor.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
---
title: Richtext editor and text blocks
title: Text Templates
sidebar_label: Text Templates
---

import {
faPlus,
faTrashAlt,
} from "@fortawesome/free-solid-svg-icons";
import { Btn } from "@site/src/js/btn.js";

Throughout the ELN, you can work with text editors in many different contexts.
`Text templates` are meant to help you write by providing ready-made paragraphs that can be inserted in many text editors.



![](/img/20231013_customTextblocks.png)

**Formatting utilities**: standard utilities for formatting text (like in Word)
**User-defined custom text templates:** icons of predefined `text templates`
**Configuration text templates**: Pop-up menu for configuration of `text templates` in editor

## Using and customizing icons
You can use predefined `text templates` if your cursor is active in the editor.
By clicking on an icon the`text template` content will appear at your cursor.

The following video shows you how to customize your toolbar:

![text_template_editor](/img/20231013_configTextTemplatesIcon.gif)

## Using and customizing text templates dropdown menus
In addition you can organize your `text templates` in dropdown menus:

![text_template_editor](/img/20231013_configTextTemplatesDropDown.gif)

You can remove all elements by clicking <Btn mixed={[faTrashAlt]} color={"danger"}/>

0 comments on commit 3f11268

Please sign in to comment.