TinyMCE-Editor: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{ÜberarbeitenNeu}}
{{ÜberarbeitenNeu}}
{{Text editieren}}
{{Text editieren}}
Der [[TinyMCE-Editor]] ist ein Text-Editor-Plugin. Es kann von der Moodle-Administration auf der Seite ''Website-Administration'' (oder im Block ''[[Einstellungen-Block|Einstellungen]] > Website-Administration'')'' > Plugins > Texteditoren > Übersicht'' aktiviert, deaktiviert oder als Standard-Editor gesetzt werden kann. 
{{New features}}


Nutzer/innen können in ihrem Profil den TinyMCE als bevorzugten Editor wählen (anstelle des Standard-Editors  [[Text-Editor|Atto]]): ''[[Nutzermenü]] > [[Nutzerprofil|Profil]] > Profil bearbeiten''.
==Was ist der TinyMCE-Editor?==
TinyMCE ist ein mächtiger Texteditor, der Nutzer/innen erlaubt, über eine nutzerfreundliche Oberfläche formatierte Inhalte zu erstellen.


==Liste der Symbole==
Die Moodle-Administration kann den Editor auf der Seite ''Website-Administration > Plugins > Texteditoren > Übersicht'' aktivieren, deaktivieren und als Standard-Editor festlegen.
Für diejenigen, die nicht mit den Symbolen eines Textverarbeitungsprogramms vertraut sind, werden die einzelnen Symbole im folgenden nach Gruppen sortiert beschrieben.


'''Hinweis''': Administrator/innen können die Symbolleiste anpassen - es kann also sein, dass die Symbolleiste in Ihrer Moodle-Installation ein bisschen anders aussieht.
Wenn die Moodle-Administration es erlaubt hat, können Nutzer/innen in ihrem Profil den TinyMCE als bevorzugten Editor wählen (anstelle des Standard-Editors  [[Text-Editor|Atto]]): ''[[Nutzermenü]] > [[Nutzerprofil|Profil]] > Profil bearbeiten''.


Zeile 1
'''Hinweis''': Es gibt auch eine ältere Version des Editors: [[TinyMCE-Editor (veraltet)]]. Wir empfehlen jedoch, dieses veraltete Plugin zu deaktivieren und stattdessen die neue Version zu verwenden. Die neue Version ist besser im Blick auf Barrierefreiheit und wird irgendwann den [[Atto-Texteditor]] als Standardeditor ersetzen.


[[Image:tinymcerow1.png]]
[[File:TinyMCEtoolbar.png|center|TinyMCE Symbolleiste, aufgeklappt]]


*1 - Symbolleisten ein-/ausblenden
== TinyMCE Symbolleiste ==
*2 - Absatzformatierung
Die folgenden Buttons sind in der Symbolleiste verfügbar (nicht alle Buttons werden immer angezeigt - das hängt von den Einstellungen der Moodle-Administration ab):
*3 - Fett
[[File:Tiny - Buttons.png|center|frameless|900x900px|]]
*4 - Kursiv
*5 - Unsortierte Liste einfügen
*6 - Geordnete Liste einfügen
*7 - Link einfügen/bearbeiten
*8 - Link entfernen
*9 - Autoverlinkung verhindern
*10 - Bild einfügen/bearbeiten
*11 - Emoticon einfügen
*12 - Medien einfügen
*13 - Eingebettete Dateien verwalten


Zeile 2


[[Image:tinymcerow2.png]]
Hier ist die Liste aller Symbole:
{| class="wikitable"
|+
!#
!Button
!#
!Button
|-
|1
|Rückgängig
|10
|Linksbündig ausrichten
|-
|2
|Wiederholen
|11
|Zentrieren
|-
|3
|Fett
|12
|Rechtsbündig ausrichten
|-
|4
|Kursiv
|13
|Blocksatz
|-
|5
|Bild einfügen / Eigenschaften bearbeiten
|14
|Einzug verkleinern
|-
|6
|[[Multimedia]] einfügen / Eigenschaften bearbeiten
|15
|Einzug vergrößern
|-
|7
|[[Audio|Audio aufnehmen]]
|16
|Aufzählung
|-
|8
|[[Video|Video aufnehmen]]
|17
|Nummerierte Liste
|-
|9
|[[H5P]] einfügen / Eigenschaften bearbeiten
|18
|Gleichungseditor
|-
|
|
|19
|Zweite Symbolzeile ein- und ausblenden
|}
Einige Symbole werden nur unter bestimmten Voraussetzungen angezeigt. Zum Beispiel wird das Gleichungseditor-Symbol nur angezeigt, wenn der [[MathJax-Filter|MathJax]] oder der [[TeX-Filter]] systemweit aktiviert sind (unter ''Website-Administration > Plugins > Filter > Übersicht''), während das H5P-Symbol nur erscheint, wenn Sie das Recht [[Capabilities/moodle/tiny/h5p:addembed]] haben.


*1 - Rückgängig
== Tiny features ==
*2 - Wiederholen
[[File:Tiny - Insert menu.png|thumb]]
*3 - Unterstrichen
The following features are available from the '''Insert''' menu:
*4 - Durchgestrichen
*5 - Tiefgestellt
*6 - Hochgestellt
*7 - Linksbündig
*8 - Zentriert
*9 - Rechtsbündig
*10 - Ausrücken
*11 - Einrücken
*12 - Textfarbe
*13 - Hintergrundfarbe
*14 - Schrift von links nach rechts
*15 - Schrift von rechts nach links


Zeile 3
=== Insert image ===
WIP


[[Image:tinymcerow3.png]]
=== Insert / Edit Link ===
When inserting or editing a link to another (internal or external) page, you can provide the following elements:


*1 - Schriftart
* '''URL''': The address of the page to navigate to. If left empty, the option ''<top>'' and ''<bottom>'' are available
*2 - Schriftgröße
* '''Text to display''': The text that is shown in the text, represented as a link
*3 - HTML-Code bearbeiten
* '''Title''': The text shown when hovering over the link
*4 - Suchen
* '''Open link in...''': The page can either be opened in the '''Current Window''' or a '''New window'''
*5 - Suchen/Ersetzen
*6 - Geschütztes Leerzeichen einfügen
*7 - Sonderzeichen einfügen
*8 - Tabelle erstellen/bearbeiten
*9 - Quellcode bereinigenAls unformatierten Text einfügen
*10 - Formatierungen entfernen
*11 - Als unformatierten Text einfügen
*12 - Als formatierten Text einfügen
*13 - Vollbildschirm


==Spezialeffekte==
[[File:Tiny - Link.png|border|center|frameless|450x450px]]
===Farben===
Es gibt vier verschieden Möglichkeiten für die Auswahl einer Schrift- oder Hintergrundfarbe:
*eine 5x8 Schnellauswahlpalette und über einen Link ''Weitere Farben'' die Möglichkeit, eine Farbe über
*''Farbwahl''
*''Palette'' oder
*''Benannte Farben''
auszuwählen.


<gallery>
=== Insert Multimedia ===
Image:color1.png|5x8 Schnellauswahlpalette
WIP
Image:color2.png|Regenbogen-''Farbwahl''
Image:color3.png|''Palette'' mit 18x12 Farben
Image:color4.png|''Benannte Farben'' - Eingabe der Farbcodierung
</gallery>


===Tabelle einfügen===
=== Record audio ===
Tabellen werden mittel Tabellen-Symbol (8, 3.Zeile) eingefügt.
WIP


Tabellenränder sind wichtig für die Lesbarkeit einer Tabelle. Sollten sie nicht richtig angezeigt werden, fügen Sie die Ränder manuell ein:
=== Record video ===
#Markieren Sie alle Zellen der Tabelle.
WIP
#Klicken Sie die rechte Maustaste und wählen Sie im Kontextmenü den Punkt ''Eigenschaften der Tabelle'' aus.
#Klicken Sie auf den Reiter ''Erweitert''.
#Wählen Sie einen ''Rahmen'' (z.B. ''alle 4 Seiten (Box)''), ein ''Gitter'' (z.B. ''zwischen allen Zellen''), eine ''Rahmenfarbe'' (z.B. schwarz).
#Klicken Sie auf den Button ''Aktualisieren''.


==Systemweite Einstellungen==
=== Insert / Edit code sample ===
Als Administrator/in können Sie verschiedene Einstellungen für den TinyMCE Editor vornehmen.
The Tiny editor lets you insert and embed syntax color highlighted code snippets into the editable area.
[[File:Tiny - Code Sample.png|border|center|frameless|600x600px]]
While you can select the (programming) language at the top, it doesn't have any impact on the way the code is displayed.


===Grundeinstellungen===
=== Insert Table ===
Auf der Seite ''[[Einstellungen-Block|Einstellungen]] > Website-Administration > Plugins > Texteditoren > Texteditor TinyMCE > Grundeinstellungen'' gibt es folgende Konfigurationsmöglichkeiten:
Tiny comes with comprehensive table management functionality to handle grid-like structures in your text. In addition to the Insert table menu item, an entire main menu has been dedicated to tables.
[[File:Tiny - Table.png|border|center|frameless|450x450px]]
Once a table has been added, you can customise individual cells, row, columns, and the properties of the entire table. The following self-explanatory menu items are available, all supporting standard HTML table options:


====Plugins====
* Cell
Standardmäßig gibt es in der Symbolleiste des Text-Editors Buttons für
** Cell properties
*''Hilfe per CTRL+Rechtsklick
** Merge cells
*''Formel einfügen''
** Split cells
*''Eingebettete Dateien verwalten'' - bietet Zugriff auf das Repository [[Eingebettete Dateien]]
* Row
*''Emoticon einfügen''
** Insert row before
*''Bild einfügen''
** Insert row after
*''Medien einfügen''
** Delete row
*''Autoverlinkung verhindern''
** Row properties
*''Toolbar umschalten''
** Cut row
*''Rechtschreibung prüfen''
** Copy row
*''Umbruch''
** Paste row before
** Paste row after
* Column
** Insert column before
** Insert column after
** Delete column
** Cut column
** Copy column
** Paste column before
** Paste column after
* Table properties
* Delete table


Sie können diese Buttons verbergen, indem Sie in der Tabelle in der entsprechenden Zeile auf den Link ''Deinstallieren'' klicken.
[[File:Tiny - Table operations.png|border|center|frameless|600x600px]]
The table editor also shows context-sensitive menus when editing different table elements.


====Einstellungen====
=== Insert special character ===
*''Symbolleiste des Editors'': In diesem Eingabebereich können Sie eintragen, welche Buttons in der Symbolleiste des TinyMCE-Editors zur Verfügung gestellt werden. Jede Zeile entspricht einer Buttonreihe. Eine Zeile enthält eine kommagetrennte Liste der einzelnen Buttons in der Reihe.
The special character picker lets you insert letters and symbols (a map of special unicode characters) that are difficult or impossible to access via your keyboard. You can either search by keyword and / or browse categories.
*''Verfügbare Zeichensätze'': In diesem Eingabebereich tragen Sie ein, welche Zeichensätze der TinyMCE-Editor bereitstellt.
[[File:Tiny - Special character.png|border|center|frameless|450x450px]]
*''Erweiterte Einstellungen'': Hier können Sie weitere Einstellungen für den TinyMCE-Editor vornehmen. Die Einstellungen müssen im JSON-Format eingegeben werden:
<pre>{"option1" : "value1", "option2" : "value2"}</pre>
Alle hier gesetzten Optionen überschreiben die Standard- und Plugineinstellungen.


Detaillierte Informationen mit Beispielen zu den erweiterten Einstellungen finden Sie in MDL-37186 und auf der [http://www.tinymce.com/wiki.php/Configuration:formats Website von TinyMCE].
=== Insert Emojis ===
Bring a smiley to your content: The emoji picker lets you insert a pictogram. You can either search by keyword and / or browse categories.
[[File:Tiny - Emojis.png|border|center|frameless|450x450px]]


===Formel einfügen===
=== Insert horizontal line ===
Auf der Seite ''[[Einstellungen-Block|Einstellungen]] > Website-Administration > Plugins > Texteditoren > Texteditor TinyMCE > Formel einfügen'' können Sie festlegen, ob der [[TeX-Notation|TeX-Filter]] im Kontext des TinyMCE-Editors verwendet werden soll. Wenn Sie diese Checkbox markieren und der TeX-Filter aktiviert ist, dann wird in der Symbolleiste des TinyMCE-Editors der DragMath-Button [[Image:dragmath.png]] zum Einfügen einer Formel angezeigt.  
Adds an HTML line to your text.


===Emoticon einfügen===
=== Insert page break ===
Auf der Seite ''[[Einstellungen-Block|Einstellungen]] > Website-Administration > Plugins > Texteditoren > Texteditor TinyMCE > Emoticon einfügen'' können Sie festlegen, ob das Emoticon-Symbol [[Image:moodleemoticon.png]] in der Symbolleiste des TinyMCE-Editors verfügbar ist. Markieren Sie dazu die Checkbox ''Emoticon-Filter notwendig'' und aktivieren Sie den [[Emoticon als Bild anzeigen|Emoticon-Filter]] im Kontext des TinyMCE-Editors.
Adds a page break (<code><nowiki><p></nowiki></code>) to your text.


====Systemweite HTML-Einstellungen====
=== Insert nonbreaking space ===
Administrator/innen können die Emoticons bearbeiten, die in den Texteditoren verwendet werden. Klicken Sie dazu im Block ''[[Einstellungen-Block|Einstellungen]] > Website-Administration > Darstellung > HTML-Einstellungen''.
Add an nonbreaking space (<code>&amp;nbsp;</code>) at the current cursor location.  


===Rechtschreibung prüfen===
=== Insert anchor ===
Auf der Seite ''[[Einstellungen-Block|Einstellungen]] > Website-Administration > Plugins > Texteditoren > Texteditor TinyMCE > Rechtschreibprüfung'' können Sie die Rechtschreibprüfung
Insert anchors (sometimes referred to as a bookmarks) to your text.  
konfigurieren:
*''Rechtschreibprüfung'': Standardmäßig verwendet der TinyMCE-Editor von Moodle Google Spell als Rechtschreibprüfung.
*''Liste zur Rechtschreibkontrolle'': Hier tragen Sie ein, für welche Sprachen die Rechtschreibprüfung durchgeführt werden soll.


==Geschwindigkeit von TinyMCE in Firefox und Chrome==
Users will be prompted via a dialog box to enter a string. The string will be inserted into the HTML as an anchor id at the location of the cursor. For example, a user places their cursor at the beginning of "Moodle" and clicks on the anchor button and enters "start" in the dialog box. The resulting HTML will take the form of <code><nowiki><p><a id="start"></a></nowiki>Moodle<nowiki></p></nowiki></code>.
Einige Nutzer/innen beklagen sich, dass der TinyMCE-Editor sehr langsam ist (siehe https://moodle.org/mod/forum/discuss.php?d=232089 und https://moodle.org/mod/forum/discuss.php?d=223125).


Um die Geschwindigkeit zu erhöhen, können Sie alle Plugins des TinyMCE-Editors deaktivieren. Dann stehen einige Funktionen (z.B. Emoticons) nicht zur Verfügung, aber der Editor arbeitet deutlich schneller.
=== Insert date/time ===
==Siehe auch==
The Insert date/time options lets you easily insert the current date and/or time into the editable area at the cursor insertion point.
* [http://www.youtube.com/watch?v=xJE6UhqnyjU Video zum Text-Editor in Moodle] (englisch)
[[File:Tiny - DateTime.png|border|center|frameless]]
* [[Text-Editor FAQ]]
The available format options depend on the selected language.


[[Category:Website-Administration]]
=== Equation editor ===
WIP


[[en:TinyMCE editor]]
=== Configure H5P content ===
WIP
 
== Tiny tools ==
[[File:Tiny - Tools menu.png|thumb]]
The following tools are available in vie the '''Tools''' menu:
=== View source code ===
The source code pop up window displays the code of the page, usually HTML or JS. The code can be modified in plain text; once the window is closed, any changes will be reflected in the WYSIWYG mode.
[[File:Tiny - Source code.png|center|frameless|900x900px]]
=== Word count ===
The word pop up windows displays the number of words and the number of characters (with and without spaces) of the entire document and the selected text, respectively.
[[File:Tiny - Word count.png|border|center|frameless|600x600px|alt=]]
 
 
The number of words are also shown in the editor's footer.
=== Accessibility checker ===
The automated [[accessibility]] checker checks for some common errors in the text. These are usually elements in the way the text is constructed that can prevent all users from having equal access to information and functionality. The list of problems that the accessibility checker looks for is:
* Images with missing or empty alt text (unless they have the presentation role)
* Contrast of font colour and background colour meets [https://en.wikipedia.org/wiki/Web_Content_Accessibility_Guidelines WCAG AA guidelines]
* Long blocks of text are sufficiently broken up into headings
* All tables require captions
* Tables should not contain merged cells as they are difficult to navigate with screen readers
* All tables should contain row or column headers
=== Media Manager ===
The media manager shows all media files that have been embedded in the text.
 
The top part of the media manager shows the familiar file management element where you can add, download, and delete attached files.
 
Files that have been attached and deleted again are shown at the bottom half of the screen.
[[File:Tiny - Media manager.png|border|center|frameless|600x600px]]
== Keyboard shortcuts ==
The following keyboard shortcuts will work in the Tiny text editor in most browsers. Note that for many of these commands to work you need to either click in the text editor or select content in the text editor.
=== Editor shortcuts ===
{| class="wikitable"
!Windows Command
!Mac Command
!Function
|-
|Ctrl + Shift + f
|⌘ + Shift + f
|Full screen toggle
|-
|Ctrl + c
|⌘ + c
|Copy
|-
|Ctrl + v
|⌘ + v
|Paste
|-
|Ctrl + Shift + v
|⌘ + Shift + v
|Paste without formatting (very useful)
|-
|Ctrl + x
|⌘ + x
|Cut
|-
|Ctrl + z
|⌘ + z
|Undo
|-
|Ctrl + y
|⌘ + y
|Redo
|-
|Ctrl + a
|⌘ + a
|Select all
|-
|Ctrl + f
|⌘ + f
|Find and replace
|-
|F3
|<s>F3</s>
|Find next
|-
|Shift + F3
|<s>Shift + F3</s>
|Find previous
|-
|Ctrl + b
|⌘ + b
|Bold
|-
|Ctrl + i
|⌘ + i
|Italics
|-
|Ctrl + u
|⌘ + u
|Underline
|-
|Ctrl + k
|⌘ + k
|Insert/edit link
|-
|Ctrl + Right arrow
|Option + Right arrow
|Move to the end of the next word
|-
|Ctrl + Left arrow
|Option + Left arrow
|Move to the end of the previous word
|-
|Ctrl + Shift + Right arrow
|Shift + Option + Right arrow
|Select the next word or letter
|-
|Ctrl + Shift + Left arrow
|Shift + Option + Left arrow
|Select the previous word or letter
|-
|Ctrl + Shift + Home
|<s>⌘ + Shift + Home</s>
|Select from the cursor to the beginning of the page
|-
|Ctrl + Shift + End
|<s>⌘ + Shift + End</s>
|Select from the cursor to the end of the page
|-
|Ctrl + Home
|⌘ + Up arrow
|Move to the beginning of the page
|-
|Ctrl + End
|⌘ + Down arrow
|Move to the end of the page
|-
|Ctrl + Backspace
|<s>⌘ + Backspace</s>
|Delete word or letter to the left
|-
|Ctrl + Delete
|<s>⌘ + Delete</s>
|Delete word or letter to the right
|-
|Ctrl + P
|⌘ + P
|Print
|-
|Alt+Shift+1
|Ctrl+Option+1
|Header 1
|-
|Alt+Shift+2
|Ctrl+Option+2
|Header 2
|-
|Alt+Shift+3
|Ctrl+Option+3
|Header 3
|-
|Alt+Shift+4
|Ctrl+Option+4
|Header 4
|-
|Alt+Shift+5
|Ctrl+Option+5
|Header 5
|-
|Alt+Shift+6
|Ctrl+Option+6
|Header 6
|-
|Alt+Shift+7
|Ctrl+Option+7
|Paragraph
|-
|Alt+Shift+8
|Ctrl+Option+8
|Div
|-
|Alt+Shift+9
|Ctrl+Option+9
|Address
|-
|Alt+0
|Option+0
|Help dialogue (list of shortcuts)
|-
|Ctrl and +
|⌘ and +
|Zoom in (not specific to the editor, but very useful)
|-
|Ctrl and -
|⌘ and -
|Zoom out (not specific to the editor, but very useful)
|-
|Ctrl and 0
|⌘ and 0
|Reset zoom (not specific to the editor, but very useful)
|-
|Double-click
|Double-click
|Select word
|-
|Triple-click
|Triple-click
|Select line
|}
=== Keyboard navigation ===
The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable.
==== Activating keyboard navigation ====
There are multiple ways to activate keyboard navigation:
* Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS)
* Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS)
* Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS)
Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline.
==== Moving between UI sections ====
When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:
* the menubar
* each group of the toolbar
* the sidebar
* the element path in the footer
* the wordcount toggle button in the footer
* the branding link in the footer
* the editor resize handle in the footer
Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.
==== Moving within UI sections ====
Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:
* moving between menus in the menubar
* moving between buttons in a toolbar group
* moving between items in the element path
In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group.
==== Executing buttons ====
To execute a button, navigate the selection to the desired button and hit space or enter.
==== Opening, navigating and closing menus ====
When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.
 
To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.
==== Context toolbars and menus ====
To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).
 
Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.
==== Dialog navigation ====
There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.
 
When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.
 
When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab’s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.
==== Accessibility shortcuts ====
This is a list of available keyboard shortcuts within the editor user interface.
{| class="wikitable"
!Windows Command
!Mac Command
!Function
|-
|Enter / Spacebar
|Enter / Spacebar
|Execute command
|-
|Tab
|Tab
|Focus on next UI Element(such as: Menu bar, Toolbar, Toolbar Group, Status Bar Item)
|-
|Shift+Tab
|Shift+Tab
|Focus on previous UI Element(such as: Menu bar, Toolbar, Toolbar Group, Status Bar Item)
|-
|Right Arrow / Down Arrow
|Right Arrow / Down Arrow
|Focus next Control(such as: toolbar button, menu, or menu item)
|-
|Left Arrow / Up Arrow
|Left Arrow / Up Arrow
|Focus previous Control(such as: toolbar button, menu, or menu item)
|-
|Down Arrow / Spacebar
|Down Arrow / Spacebar
|Open menu or toolbar menu button
|-
|Spacebar
|Spacebar
|Open group toolbar button
|-
|Down Arrow
|Down Arrow
|Open split toolbar button
|-
|Shift+Enter
|Shift+Enter
|Open the popup menu on split toolbar buttons
|-
|Right Arrow
|Right Arrow
|Open submenu
|-
|Left Arrow / Esc
|Left Arrow / Esc
|Close submenu
|-
|Esc
|Esc
|Close dialog
|-
|Esc
|Esc
|Close menu
|-
|Esc
|Esc
|Move focus back to editor body
|}
'''Note''': Browsers and Screen Readers provide additional shortcuts within the editor context.
==Site administration settings==
=== Equation editor settings ===
[[File:Tiny - Equation editor settings.png|thumb]]
The equation editor has 4 tabs: Operators, Arrows, Greek symbols, and Advanced. The commands that are available on each tab and their order can be configured in ''Site administration > Plugins > Text editors > TinyMCE editor > Equation editor settings''.
 
For each group, the list of commands is shown in TeX format.
=== Tiny Record RTC plugin for Moodle ===
[[File:Tiny - RTC settings.png|thumb]]
Tiny fully supports media recording through. Internally, RecordRTC is utilised, an open source JavaScript library using WebRTC for audio and video recording. To configure its settings, navigate to ''Site administration > Plugins > Text editors > TinyMCE editor > RecordRTC'':
 
The following options have an impact on server resources, both in terms of bandwidth and disk usage:
* '''Allowed types''': You can specify whether '''Audio and video''' recording are supported or '''Audio only''' or '''Video only'''. There are two capabilities to control access to the Atto buttons: ''tiny/recordrtc:recordaudio'' and ''tiny/recordrtc:recordvideo''.
* '''Audio bitrate''' and '''Video bitrate''': The lower the bitrates, the smaller the file sizes, and vice versa. The default bitrate for recorded audio (128000) should generate files of about 15 KB per minute; the default bitrate for recorded video (2500000) to files of approximately 20 MB per minute.
* '''Audio time limit in seconds''' and '''Video time limit in seconds''': The default time limit is 2 minutes for audio and video recording. Again, the longer the maximum recording length, the bigger the resulting files.
 
 
Recordings are stored in subdirectories of ''$CFG->dataroot>/filedir''. Ensure ''post_max_size'' and ''upload_max_filesize'' are configured in line with your expected maximum recording sizes.
=== General settings ===
[[File:Tiny - General settings.png|thumb]]
The editor shows a small "Power by Tiny" icon in the footer that includes a link to the Tiny editor web site. You can show/hide this icon by enabling/disabling the '''Tiny branding''' option.
[[es:Editor TinyMCE]]
[[es:Editor TinyMCE]]
[[de:TinyMCE-Editor]]
[[fr:Éditeur TinyMCE]]
[[fr:Éditeur TinyMCE]]

Version vom 25. November 2022, 13:56 Uhr

Baustelle.png Diese Seite muss überarbeitet werden, weil sie neue Funktionalitäten enthält. Greif zu!
Wenn du dich um diesen Artikel kümmern willst, dann kennzeichne das, indem du die Vorlage {{ÜberarbeitenNeu}} durch die Vorlage {{ÜberarbeitenVergeben}} ersetzt.
Wenn du mit deiner Arbeit fertig bist, dann entferne die Vorlage aus dem Artikel.
Danke für deine Mitarbeit!


Vorlage:New features

Was ist der TinyMCE-Editor?

TinyMCE ist ein mächtiger Texteditor, der Nutzer/innen erlaubt, über eine nutzerfreundliche Oberfläche formatierte Inhalte zu erstellen.

Die Moodle-Administration kann den Editor auf der Seite Website-Administration > Plugins > Texteditoren > Übersicht aktivieren, deaktivieren und als Standard-Editor festlegen.

Wenn die Moodle-Administration es erlaubt hat, können Nutzer/innen in ihrem Profil den TinyMCE als bevorzugten Editor wählen (anstelle des Standard-Editors Atto): Nutzermenü > Profil > Profil bearbeiten.

Hinweis: Es gibt auch eine ältere Version des Editors: TinyMCE-Editor (veraltet). Wir empfehlen jedoch, dieses veraltete Plugin zu deaktivieren und stattdessen die neue Version zu verwenden. Die neue Version ist besser im Blick auf Barrierefreiheit und wird irgendwann den Atto-Texteditor als Standardeditor ersetzen.

TinyMCE Symbolleiste, aufgeklappt

TinyMCE Symbolleiste

Die folgenden Buttons sind in der Symbolleiste verfügbar (nicht alle Buttons werden immer angezeigt - das hängt von den Einstellungen der Moodle-Administration ab):

Tiny - Buttons.png


Hier ist die Liste aller Symbole:

# Button # Button
1 Rückgängig 10 Linksbündig ausrichten
2 Wiederholen 11 Zentrieren
3 Fett 12 Rechtsbündig ausrichten
4 Kursiv 13 Blocksatz
5 Bild einfügen / Eigenschaften bearbeiten 14 Einzug verkleinern
6 Multimedia einfügen / Eigenschaften bearbeiten 15 Einzug vergrößern
7 Audio aufnehmen 16 Aufzählung
8 Video aufnehmen 17 Nummerierte Liste
9 H5P einfügen / Eigenschaften bearbeiten 18 Gleichungseditor
19 Zweite Symbolzeile ein- und ausblenden

Einige Symbole werden nur unter bestimmten Voraussetzungen angezeigt. Zum Beispiel wird das Gleichungseditor-Symbol nur angezeigt, wenn der MathJax oder der TeX-Filter systemweit aktiviert sind (unter Website-Administration > Plugins > Filter > Übersicht), während das H5P-Symbol nur erscheint, wenn Sie das Recht Capabilities/moodle/tiny/h5p:addembed haben.

Tiny features

The following features are available from the Insert menu:

Insert image

WIP

Insert / Edit Link

When inserting or editing a link to another (internal or external) page, you can provide the following elements:

  • URL: The address of the page to navigate to. If left empty, the option <top> and <bottom> are available
  • Text to display: The text that is shown in the text, represented as a link
  • Title: The text shown when hovering over the link
  • Open link in...: The page can either be opened in the Current Window or a New window

Insert Multimedia

WIP

Record audio

WIP

Record video

WIP

Insert / Edit code sample

The Tiny editor lets you insert and embed syntax color highlighted code snippets into the editable area.

While you can select the (programming) language at the top, it doesn't have any impact on the way the code is displayed.

Insert Table

Tiny comes with comprehensive table management functionality to handle grid-like structures in your text. In addition to the Insert table menu item, an entire main menu has been dedicated to tables.

Once a table has been added, you can customise individual cells, row, columns, and the properties of the entire table. The following self-explanatory menu items are available, all supporting standard HTML table options:

  • Cell
    • Cell properties
    • Merge cells
    • Split cells
  • Row
    • Insert row before
    • Insert row after
    • Delete row
    • Row properties
    • Cut row
    • Copy row
    • Paste row before
    • Paste row after
  • Column
    • Insert column before
    • Insert column after
    • Delete column
    • Cut column
    • Copy column
    • Paste column before
    • Paste column after
  • Table properties
  • Delete table

The table editor also shows context-sensitive menus when editing different table elements.

Insert special character

The special character picker lets you insert letters and symbols (a map of special unicode characters) that are difficult or impossible to access via your keyboard. You can either search by keyword and / or browse categories.

Insert Emojis

Bring a smiley to your content: The emoji picker lets you insert a pictogram. You can either search by keyword and / or browse categories.

Insert horizontal line

Adds an HTML line to your text.

Insert page break

Adds a page break (<p>) to your text.

Insert nonbreaking space

Add an nonbreaking space (&nbsp;) at the current cursor location.

Insert anchor

Insert anchors (sometimes referred to as a bookmarks) to your text.

Users will be prompted via a dialog box to enter a string. The string will be inserted into the HTML as an anchor id at the location of the cursor. For example, a user places their cursor at the beginning of "Moodle" and clicks on the anchor button and enters "start" in the dialog box. The resulting HTML will take the form of <p><a id="start"></a>Moodle</p>.

Insert date/time

The Insert date/time options lets you easily insert the current date and/or time into the editable area at the cursor insertion point.

The available format options depend on the selected language.

Equation editor

WIP

Configure H5P content

WIP

Tiny tools

The following tools are available in vie the Tools menu:

View source code

The source code pop up window displays the code of the page, usually HTML or JS. The code can be modified in plain text; once the window is closed, any changes will be reflected in the WYSIWYG mode.

Word count

The word pop up windows displays the number of words and the number of characters (with and without spaces) of the entire document and the selected text, respectively.


The number of words are also shown in the editor's footer.

Accessibility checker

The automated accessibility checker checks for some common errors in the text. These are usually elements in the way the text is constructed that can prevent all users from having equal access to information and functionality. The list of problems that the accessibility checker looks for is:

  • Images with missing or empty alt text (unless they have the presentation role)
  • Contrast of font colour and background colour meets WCAG AA guidelines
  • Long blocks of text are sufficiently broken up into headings
  • All tables require captions
  • Tables should not contain merged cells as they are difficult to navigate with screen readers
  • All tables should contain row or column headers

Media Manager

The media manager shows all media files that have been embedded in the text.

The top part of the media manager shows the familiar file management element where you can add, download, and delete attached files.

Files that have been attached and deleted again are shown at the bottom half of the screen.

Keyboard shortcuts

The following keyboard shortcuts will work in the Tiny text editor in most browsers. Note that for many of these commands to work you need to either click in the text editor or select content in the text editor.

Editor shortcuts

Windows Command Mac Command Function
Ctrl + Shift + f ⌘ + Shift + f Full screen toggle
Ctrl + c ⌘ + c Copy
Ctrl + v ⌘ + v Paste
Ctrl + Shift + v ⌘ + Shift + v Paste without formatting (very useful)
Ctrl + x ⌘ + x Cut
Ctrl + z ⌘ + z Undo
Ctrl + y ⌘ + y Redo
Ctrl + a ⌘ + a Select all
Ctrl + f ⌘ + f Find and replace
F3 F3 Find next
Shift + F3 Shift + F3 Find previous
Ctrl + b ⌘ + b Bold
Ctrl + i ⌘ + i Italics
Ctrl + u ⌘ + u Underline
Ctrl + k ⌘ + k Insert/edit link
Ctrl + Right arrow Option + Right arrow Move to the end of the next word
Ctrl + Left arrow Option + Left arrow Move to the end of the previous word
Ctrl + Shift + Right arrow Shift + Option + Right arrow Select the next word or letter
Ctrl + Shift + Left arrow Shift + Option + Left arrow Select the previous word or letter
Ctrl + Shift + Home ⌘ + Shift + Home Select from the cursor to the beginning of the page
Ctrl + Shift + End ⌘ + Shift + End Select from the cursor to the end of the page
Ctrl + Home ⌘ + Up arrow Move to the beginning of the page
Ctrl + End ⌘ + Down arrow Move to the end of the page
Ctrl + Backspace ⌘ + Backspace Delete word or letter to the left
Ctrl + Delete ⌘ + Delete Delete word or letter to the right
Ctrl + P ⌘ + P Print
Alt+Shift+1 Ctrl+Option+1 Header 1
Alt+Shift+2 Ctrl+Option+2 Header 2
Alt+Shift+3 Ctrl+Option+3 Header 3
Alt+Shift+4 Ctrl+Option+4 Header 4
Alt+Shift+5 Ctrl+Option+5 Header 5
Alt+Shift+6 Ctrl+Option+6 Header 6
Alt+Shift+7 Ctrl+Option+7 Paragraph
Alt+Shift+8 Ctrl+Option+8 Div
Alt+Shift+9 Ctrl+Option+9 Address
Alt+0 Option+0 Help dialogue (list of shortcuts)
Ctrl and + ⌘ and + Zoom in (not specific to the editor, but very useful)
Ctrl and - ⌘ and - Zoom out (not specific to the editor, but very useful)
Ctrl and 0 ⌘ and 0 Reset zoom (not specific to the editor, but very useful)
Double-click Double-click Select word
Triple-click Triple-click Select line

Keyboard navigation

The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable.

Activating keyboard navigation

There are multiple ways to activate keyboard navigation:

  • Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS)
  • Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS)
  • Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS)

Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline.

Moving between UI sections

When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:

  • the menubar
  • each group of the toolbar
  • the sidebar
  • the element path in the footer
  • the wordcount toggle button in the footer
  • the branding link in the footer
  • the editor resize handle in the footer

Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.

Moving within UI sections

Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:

  • moving between menus in the menubar
  • moving between buttons in a toolbar group
  • moving between items in the element path

In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group.

Executing buttons

To execute a button, navigate the selection to the desired button and hit space or enter.

Opening, navigating and closing menus

When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.

To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.

Context toolbars and menus

To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).

Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.

Dialog navigation

There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.

When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.

When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab’s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.

Accessibility shortcuts

This is a list of available keyboard shortcuts within the editor user interface.

Windows Command Mac Command Function
Enter / Spacebar Enter / Spacebar Execute command
Tab Tab Focus on next UI Element(such as: Menu bar, Toolbar, Toolbar Group, Status Bar Item)
Shift+Tab Shift+Tab Focus on previous UI Element(such as: Menu bar, Toolbar, Toolbar Group, Status Bar Item)
Right Arrow / Down Arrow Right Arrow / Down Arrow Focus next Control(such as: toolbar button, menu, or menu item)
Left Arrow / Up Arrow Left Arrow / Up Arrow Focus previous Control(such as: toolbar button, menu, or menu item)
Down Arrow / Spacebar Down Arrow / Spacebar Open menu or toolbar menu button
Spacebar Spacebar Open group toolbar button
Down Arrow Down Arrow Open split toolbar button
Shift+Enter Shift+Enter Open the popup menu on split toolbar buttons
Right Arrow Right Arrow Open submenu
Left Arrow / Esc Left Arrow / Esc Close submenu
Esc Esc Close dialog
Esc Esc Close menu
Esc Esc Move focus back to editor body

Note: Browsers and Screen Readers provide additional shortcuts within the editor context.

Site administration settings

Equation editor settings

The equation editor has 4 tabs: Operators, Arrows, Greek symbols, and Advanced. The commands that are available on each tab and their order can be configured in Site administration > Plugins > Text editors > TinyMCE editor > Equation editor settings.

For each group, the list of commands is shown in TeX format.

Tiny Record RTC plugin for Moodle

Tiny fully supports media recording through. Internally, RecordRTC is utilised, an open source JavaScript library using WebRTC for audio and video recording. To configure its settings, navigate to Site administration > Plugins > Text editors > TinyMCE editor > RecordRTC:

The following options have an impact on server resources, both in terms of bandwidth and disk usage:

  • Allowed types: You can specify whether Audio and video recording are supported or Audio only or Video only. There are two capabilities to control access to the Atto buttons: tiny/recordrtc:recordaudio and tiny/recordrtc:recordvideo.
  • Audio bitrate and Video bitrate: The lower the bitrates, the smaller the file sizes, and vice versa. The default bitrate for recorded audio (128000) should generate files of about 15 KB per minute; the default bitrate for recorded video (2500000) to files of approximately 20 MB per minute.
  • Audio time limit in seconds and Video time limit in seconds: The default time limit is 2 minutes for audio and video recording. Again, the longer the maximum recording length, the bigger the resulting files.


Recordings are stored in subdirectories of $CFG->dataroot>/filedir. Ensure post_max_size and upload_max_filesize are configured in line with your expected maximum recording sizes.

General settings

The editor shows a small "Power by Tiny" icon in the footer that includes a link to the Tiny editor web site. You can show/hide this icon by enabling/disabling the Tiny branding option.