-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- and small changes to text formatting
- Loading branch information
Showing
2 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 12 additions & 16 deletions
28
docs/eln/ui/rich_text_editor.mdx → docs/eln/ui/text_editor.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,32 @@ | ||
--- | ||
title: Text Templates | ||
sidebar_label: Text Templates | ||
title: Text Editor | ||
--- | ||
|
||
import { | ||
faPlus, | ||
faTrashAlt, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
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. | ||
|
||
|
||
`Text templates` are meant to help you write by providing ready-made paragraphs that can be inserted in many text editors. They can be configured by an admin in the [admin panel](../admin/text_template). | ||
|
||
![](/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 | ||
**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: | ||
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: | ||
## Using and customizing templates dropdown menus | ||
|
||
In addition you can organize your templates in dropdown menus: | ||
|
||
![text_template_editor](/img/20231013_configTextTemplatesDropDown.gif) | ||
|
||
You can remove all elements by clicking <Btn mixed={[faTrashAlt]} color={"danger"}/> | ||
You can remove all elements by clicking <Btn mixed={[faTrashAlt]} color={"danger"}/> |