Skip to content

Commit

Permalink
file rename
Browse files Browse the repository at this point in the history
- and small changes to text formatting
  • Loading branch information
harivyasi committed Oct 17, 2023
1 parent 3f11268 commit 5437cec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
---
title: Text Templates
sidebar_label: Text Templates
title: Text Template
---

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, users work with text editors in many different contexts.
`Text templates` are meant to help users with writing by providing ready-made paragraphs that can be inserted in any text editor.
Users can insert a `text template` by clicking on the corresponding icon on top of the text editors.
Text template are meant to help users with writing by providing ready-made paragraphs that can be inserted in any text editor.
Users can insert a template by clicking on the corresponding icon on top of the text editors.

Click on `Text Templates` in the sidebar of the administrator interface in order to
open an editor that lets you configure custom `text templates`:
open an editor that lets you configure custom text template:

![text_template_editor](/img/admin_ui/text_template_editor.png)

Expand All @@ -25,4 +21,4 @@ The icon will appear in the header of the editor, the text entry in a user defin

![text_template_edited](/img/admin_ui/text_template_edited.png)

Remove a `text template` by clicking the <Btn mixed={[faTrashAlt]} color={"danger"}/> button next to a template in the list on the left.
Remove a template by clicking the <Btn mixed={[faTrashAlt]} color={"danger"}/> button next to a template in the list on the left.
28 changes: 12 additions & 16 deletions docs/eln/ui/rich_text_editor.mdx → docs/eln/ui/text_editor.mdx
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"}/>

0 comments on commit 5437cec

Please sign in to comment.