Manual:Extension/VisualEditor and Manual:Extension/VisualEditor/Insert files: Difference between pages

(Difference between pages)
(Created page with "<bookshelf src="Book:User manual" /> {{DISPLAYTITLE:Edit pages}} BlueSpice uses the MediaWiki extension VisualEditor as editing tool. This sophisticated editor supports all co...")
Tag: 2017 source edit
 
No edit summary
 
Line 1: Line 1:
<bookshelf src="Book:User manual" />
{{DISPLAYTITLE:Insert files}}
{{DISPLAYTITLE:Edit pages}}
BlueSpice uses the MediaWiki extension VisualEditor as editing tool. This sophisticated editor supports all common edit tasks that you can expect in a wiki environment.


==What is VisualEditor?==
You can insert already uploaded files or upload new files directly when editing an article.


<section begin="training" /><div class="training">
== Inserting a file ==
[[File:Manual:ve-EN.png|alt=VisualEditor|center|thumb|650x650px|VisualEditor]]


The visual editor is optimized for editing wiki pages. Important characteristics and functions are:
=== Drag-and-drop method  ===
You can upload a new file when you edit a page:


#'''Page structuring''' with headings.
# '''Drag''' the file onto the page.  A horizontal line will appear where the file will be dropped.
#Consistent '''text formatting'''.
# '''Change''' the file name in the ''Upload file'' dialog (optional).  [[File:Insert files 1.png|alt=Insert file via drag-and-drop|center|thumb|400x400px|Insert file via drag-and-drop]]
#'''Linking''' of contents.
# '''Click''' ''Insert''.
#'''Inserting special content''' (files/media, tables, templates, magic words)
# '''Double-click''' the thumbnail to adjust the size and positioning (optional).
#Adjusting '''page options'''.
</div><section end="training" />


==Text editing==  
=== Editor toolbar ===
Typical text formatting options such as '''bold''', ''italics'', or <span class="col-turquoise">text color</span> are available as a context menu. When you highlight text, a menu with common formatting elements appears. For example, you can apply a different text color.
To upload and insert a file from the editor toolbar:
<br />
[[File:BlueSpice_3.1_-_Notable_Changes_-_Text_colors.png|center|thumb|Applying text color|link=Special:FilePath/BlueSpice_3.1_-_Notable_Changes_-_Text_colors.png]]<br />
 
==Pasting content from your clipboard ==
[[File:Manual:error.png|link=https://en.wiki.bluespice.com/wiki/File:Manual:error.png|thumb|112x112px|Undo]]
If you paste content from your clipboard (e.g., copied from MS Word or MS Excel), you usually also paste many unnecessary formatting tags from the original application. To avoid, this you should paste the content as plaintext.
 
If you already pasted text which resulted in undesirable formatting, you can use the undo function in VisualEditor to remove the content again if you have not yet saved the page or switched between visual and source editing mode.
 
To paste content as plain text instead, use the shortcut '''ctrl+shift+v'''.
==Shortcuts==
If you want to apply multiple formatting options at the same time, shortcuts are often the quickest way. For example, to show text in bold and italic, highlight the text and press ''Ctrl+b'' (for "'''bold'''") and ''Ctrl+i'' (for "''italics''"). Even a link can be quickly inserted by pressing ''Ctrl+k''. Pressing ''Ctrl+b'' again will cancel the bold. Multiple formats can be removed after text selection with ''Ctrl+m''.
 
All available keyboard shortcuts are marked accordingly in VisualEditor next to each menu item.
 
<br />
[[File:Manual:editing_tools.png|alt=Menu items with shortcuts|center|thumb|350x350px|Menu items with shortcuts]]
<br />
 
{{Messagebox|boxtype=note|Note text=For a list of all available shortcuts, click on "Keyboard shortcuts" in the Visual Editor help menu (the question mark menu item).}}
 
==Inserting other content==
Many typical page elements such as images, files and tables can be integrated into your page from the ''Insert'' menu.
*File formats with a preview option: jpg/jpeg, png, gif, pdf
*File formats without preview option are always inserted as links (e.g., Microsoft Office formats)
*Files can be connected with namespaces and categories
<section end="training-medien" />
 
If you want to learn more about inserting these elements, go to the following help pages:
 
*[[Manual:Extension/VisualEditor/Images|Images]]
* [[Manual:Extension/VisualEditor/Images|Files (PDF, xls, doc, ...)]]
* [[Manual:Extension/VisualEditor/Tables|Tables]]
*[[Manual:Templates|Templates]]
 
==Wiki-specific content==
Some functions in the "Insert" menu are little known from traditional word processing, but are quite typical for working with a wiki. Therefore, they are briefly introduced here. Find more information on the help pages here in the helpdesk or at mediawiki.org:
 
*'''Comment:''' Add comments to the page. These are only visible in the source code.
*'''[[mediawikiwiki:Help:VisualEditor/User_guide#Editing_media_galleries|Gallery]]:''' A simple picture gallery can support many process flows.
*'''[[Manual:MagicWords|Magic word]]:''' Wiki features such as signature, word counter, category tree or even process diagrams with draw.io can be integrated as a "magic word".
*'''Your signature:''' Only works on pages that allow signatures. Pages in the Namespace "Pages" are not included.
*'''Codeblock:''' Programming code is displayed here in clean code blocks, optionally with line numbers.
*'''References list:'''
*'''Chemical formula:''' The formula rendering uses an external service via Wikimedia's REST API.
*'''[[mediawikiwiki:Help:VisualEditor/User_guide/en#Editing_mathematical_formulae|Math formula]]:''' An editor opens for entering a mathematical formula.
 
==Switching between edit modes==
When creating or editing a page, the page loads in visual editing mode. If you are familiar with the code language of MediaWiki ("Wikitext"), you can easily switch to source editing mode using the  "Switch editor" button:
[[File:Manual:editing.png|link=https://en.wiki.bluespice.com/wiki/File:Manual:editing.png|alt=edit modes|center|250x250px|edit modes]]
 
==MediaWiki reference==
Since  VisualEditor is a standard MediaWiki extension, you can also read a [https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/en|complete documentation of functionality on MediaWiki]. Here in the BlueSpice Helpdesk, we only give some hints and tips for using the editor.
 
== Hints and tips==
VisualEditor is optimized for editing web pages. That's why it has exactly the features that are often needed to create a wiki page. The consistent formatting of content  supports the readability of your wiki content.
 
===Text formatting===
{| class="wikitable"
|-
! colspan="2" |'''Text formatting'''
|-
|Undo function
[[File:Manual:error.png|frameless|112x112px|link=Special:FilePath/Manual:error.png]]
|Left arrow: Undo last action (greyed out: there is no last action yet)
Right arrow: Restore last action (greyed out: there's nothing to restore yet)
|-
|Format Paragraph
[[File:Manual:paragraph.png|frameless|162x162px|link=Special:FilePath/Manual:paragraph.png]]
|Here text can be defined as heading or specific paragraph type.
 
''Note:'' If you work in a [[Visual Editor / Tables|table]], the options will change accordingly (content cell and header cell):[[File:Manual:content cell.png|left|frameless|183x183px|alternative-text=VisualEditor-paragraph2|link=Special:FilePath/Manual:content_cell.png]]<br />
|-
|Style text
[[File:Manual:VE character formatting.png|link=Special:FilePath/Manual:VE_character_formatting.png]]
 
|If no text has been selected before clicking on the "''''' A'''''" button and on a button, the text will be formatted from the current position of the cursor.
([[mediawikiwiki:Help:VisualEditor/User_guide/en#Getting_Started:_The_VisualEditor-Toolbar|More Info at mediawiki.org/wiki/Help:VisualEditor/User_guide/en#Getting_Started:_The_VisualEditor-Toolbar]]])
|-
|Insert hyperlink
[[File:Manual:VE Insert hyperlink.png|link=Special:FilePath/Manual:VE_Insert_hyperlink.png]]<br />
|If no text was selected before the hyperlink dialog was opened, the link will be generated with a number:
[https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/de#Erste_Schritte:_Die_VisualEditor-Werkzeugleiste]
To subsequently change the hyperlink description, just click on the link to open the edit menu. In a table, you may need to double-click the cell first and then click the hyperlink again.
|-
|cite
[[File:Manual:VE cite.png|link=Special:FilePath/Manual:VE_cite.png]]
|The citation menu is used to insert footnote references (also called itemizations or footnotes) within the text.
|-
| Structure
[[File:Manual:VE structure new.png|link=Special:FilePath/Manual:VE_structure_new.png]]
 
|
|}
 
<br />
 
===Insert special content===
{| class="wikitable"
|-
! colspan="2" |'''Paste Special Content'''
|-
|Insert menu


[[File:Manual:insert.png|frameless|102x102px|link=Special:FilePath/Manual:insert.png]]
# '''Select'''  ''Insert > Images and Media'' from the editor toolbar.[[File:instert_2.0.0.png|alt=|center|thumb|250x250px|''Insert Media'' dialog]]
|Use the "insert" menu to insert various media (images, videos) and text formats:
# '''Switch''' to the ''Upload'' tab  (2) in the ''Media settings'' dialog to upload a new file.  <br />To select an existing file, switch to the ''Advanced search'' tab (3). The ''Search'' tab (1) shows the latest uploaded files for selection.[[File:Insert files 2.png|alt=Media settings|center|thumb|650x650px|Media settings]]
|-
# '''Click''' ''Select a file.'' Provide a ''Target namespace'' (optional). If you are unsure, leave the namespace setting as suggested.
|media
# '''Click''' ''Upload''. The dialog window ''Media Settings'' opens.
[[File:Manual:VE media.png|link=Special:FilePath/Manual:VE_media.png]]
# <br />[[File:Media_settings_5.0.png|alt=|center|thumb|378x378px]]
|Inserting pictures and videos
#


([[mediawikiwiki:Help:VisualEditor/User_guide/en#Getting_Started:_The_VisualEditor-ToolbarHelp:VisualEditor/User_guide/en#Editing_images_and_other_media_files|Details on MediaWiki]]])
|-
|templates
[[File:Manual:VE template.png|link=Special:FilePath/Manual:VE_template.png]]
|Include a [[Manual:Templates|template]] in the page.
|-
|tables
[[File:Manual:VE table.png|link=Special:FilePath/Manual:VE_table.png]]
|[[Manual:Extension/VisualEditor/Tables|Tables]] are an important tool for formatting tabular page content.
|-
|comment
[[File:Manual:VE comment.png|link=Special:FilePath/Manual:VE_comment.png]]
|Comments are not visible to readers, but only in edit mode. A comment can be inserted anywhere on a page. The comment can be edited by clicking on it.




Now click "Upload":


And this is what a comment looks like:[[File:Manual:comment.png|left|frameless|186x186px|alternativetext=VisualEditor-comment|link=Special:FilePath/Manual:comment.png]]<br />
The general and advanced settings are largely identical to [[VisualEditor/Images|image]] files. However, there are differences in the linking options, as, for example, a PDF file is not displayed as an image directly on the page.
|-
|Gallery
[[File:Manual:VE gallery.png|link=Special:FilePath/Manual:VE_gallery.png]]
|
|-
|Magic word
[[File:Manual:VE magic word.png|link=Special:FilePath/Manual:VE_magic_word.png]]
|With a "magic word" you can include certain variables or so-called behavioral switches in your page. For example, you can display the word count: <!-- insert word count here -->


 
==Special features when including files==
 
[[File:Media_settings_6.0.0.png|alt=|center|thumb|400x400px]]
<br /> [[Manual:Extension/BlueSpiceInsertMagic|Learn more about the functionMagic Word]]
There are three ways to link a file on a page:<br />
|-
| Your signature
[[File:Manual:VE your signature.png|link=Special:FilePath/Manual:VE_your_signature.png]]
|This option can only be used in discussions. It allows to add a signature at any point of a discussion.
|-
|Code block
[[File:Manual:VE code block.png|150x150px|link=Special:FilePath/Manual:VE_code_block.png]]
|With code block various code examples can be entered, like e.g. in HTML syntax. The code is then displayed properly formatted:
<br /><pre>
<span style="color: red">red text</span>
</pre>
|-
|Refernces list
[[File:Manual:VE refernces list.png|150x150px|link=Special:FilePath/Manual:VE_refernces_list.png]]
<br />
<br />
|
|-
|Chemical formula
[[File:Manual:VE chemical formula.png|link=Special:FilePath/Manual:VE_chemical_formula.png]]
|The formula rendering uses an external service via Wikimedia's REST API.<br />
|-
|Math formula
[[File:Manual:VE math formula.png|150x150px|link=Special:FilePath/Manual:VE_math_formula.png]]
|It opens an editor for entering a mathematical formula.


[<nowiki/>[[https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/en#Editing_mathematical_formulae|More|info on MediaWiki]]]
*'''Link this file (1):''' The inserted link opens the file.
|-
*'''Link file description page (2):''' The link leads to the file page on the wiki. There, you can view the file details or upload a new version of the file.
|Special Characters
*'''Embed this file (3):''' The link inserts a preview image. The preview image opens the file description  page when clicked. This only works with PDF and .tiff files.
[[File:Manual:VE special characters.png|link=Special:FilePath/Manual:VE_special_characters.png]]
<br />
|
|}<br />Page options
{| class="wikitable"
|-
! colspan="2" |'''Page Options'''
|-
|Options menu[[File:Manual:tool.png|left|frameless|69x69px|alternative text=VisualEditor-options|link=Special:FilePath/Manual:tool.png]]


|The options menu allows editing of all page settings.
'''General Settings:''' An alternative text is required if you embed the file on the page. This is done via the corresponding "Embed this file" button. Since a preview image is created here, the alternative text should be used just like with images.
|-
|Options
[[File:Manual:VE options.png|link=Special:FilePath/Manual:VE_options.png]]
|This button allows the page settings and page information to be updated simultaneously within a dialog box.
|-
|Categories
[[File:Manual:VE categories.png|link=Special:FilePath/Manual:VE_categories.png]]
|Here you assign the page to one or more categories  [[Manual:Creating and using categories|Categories]]. The page will appear accordingly on all linked category pages.
|-
|Page Settings
[[File:Manual:VE page settings.png|link=Special:FilePath/Manual:VE_page_settings.png]]
|Page redirection: When the page is redirected, the content of the page is no longer displayed, but the target page is loaded directly.


If you link to the file or the file description page, VisualEditor will in both cases inserts the same link text, even though the link will lead to different pages. However, the displayed link text can be changed directly on the page. Just click into the text and change it accordingly.


This setting can also be used to display or remove the table of contents at the top of the page. The table of contents is automatically generated by the headings on the page. When a page has more than three headings, the table of contents appears automatically by default.
{{Messagebox|boxtype=note|Note text=If you place a file link directly on already selected text, VisualEditor will replace the selected text with the file information. It is therefore advisable to insert a file link via VisualEditor when the cursor is located at a blank space.}}
|-
|Advanced Settings
[[File:Manual:VE advanced settings.png|link=Special:FilePath/Manual:VE_advanced_settings.png]]
|
|-
|Languages
[[File:Manual:languages.png|link=Special:FilePath/Manual:languages.png]]
|
|-
|Templates used
[[File:Manual:VE templates used.png|link=Special:FilePath/Manual:VE_templates_used.png]]
|
|-
|View as right-to-left
[[File:Manual:VE view as right-to-left.png|link=Special:FilePath/Manual:VE_view_as_right-to-left.png]]
|Support for languages that are read from right to left. Clicking this button right-side formats the page text. Click again to set the text flush left.
|-
|Find and replace
[[File:Manual:VE find and replace.png|link=Special:FilePath/Manual:VE_find_and_replace.png]]
|Words or characters can be searched and replaced directly on the page. The "Undo" button can be used to cancel the change.
|}


==Troubleshooting: Visual editing is disabled ==
==<span class="mw-headline" id="Maximale_Dateigr.C3.B6.C3.9Fe">Maximum file size</span>==
If you only have the source editing option in your editor toolbar, please contact an administrator of your wiki. The following settings must be checked in this case:
The maximum allowed file size cannot be configured in the wiki itself. The maximum allowed limit is defined on the server in the php.ini file in the PHP installation. The actual (possibly smaller) limit, however, is set in the BlueSpice installation in LocalSettings.php or another configuration file in the settings.d folder. The default setting is 32 MB.


*Global settings via the [[Manual:Extension/BlueSpiceConfigManager|configuration manager]]
Contact your wiki administrator if you receive an error message when trying to upload a larger file.
*[[Manual:Extension/BlueSpiceNamespaceManager|Namespace manager]] settings


<br />
==Avoiding unusual file names==
<!-- Document Info --><!-- User story: As a maintainer, I'd like to understand all the features of VisualEditor so I can assist wiki authors in using them. --><!-- Information type: Concept -->
{{Filename}}


[[en:{{FULLPAGENAME}}]]
[[de:VisualEditor]]
[[Category:Editing]]
[[Category:Editing]]

Revision as of 16:45, 19 September 2022


You can insert already uploaded files or upload new files directly when editing an article.

Inserting a file

Drag-and-drop method

You can upload a new file when you edit a page:

  1. Drag the file onto the page. A horizontal line will appear where the file will be dropped.
  2. Change the file name in the Upload file dialog (optional).
    Insert file via drag-and-drop
    Insert file via drag-and-drop
  3. Click Insert.
  4. Double-click the thumbnail to adjust the size and positioning (optional).

Editor toolbar

To upload and insert a file from the editor toolbar:

  1. Select Insert > Images and Media from the editor toolbar.
    Insert Media dialog
  2. Switch to the Upload tab (2) in the Media settings dialog to upload a new file.
    To select an existing file, switch to the Advanced search tab (3). The Search tab (1) shows the latest uploaded files for selection.
    Media settings
    Media settings
  3. Click Select a file. Provide a Target namespace (optional). If you are unsure, leave the namespace setting as suggested.
  4. Click Upload. The dialog window Media Settings opens.


Now click "Upload":

The general and advanced settings are largely identical to image files. However, there are differences in the linking options, as, for example, a PDF file is not displayed as an image directly on the page.

Special features when including files

There are three ways to link a file on a page:

  • Link this file (1): The inserted link opens the file.
  • Link file description page (2): The link leads to the file page on the wiki. There, you can view the file details or upload a new version of the file.
  • Embed this file (3): The link inserts a preview image. The preview image opens the file description page when clicked. This only works with PDF and .tiff files.

General Settings: An alternative text is required if you embed the file on the page. This is done via the corresponding "Embed this file" button. Since a preview image is created here, the alternative text should be used just like with images.

If you link to the file or the file description page, VisualEditor will in both cases inserts the same link text, even though the link will lead to different pages. However, the displayed link text can be changed directly on the page. Just click into the text and change it accordingly.

Note:If you place a file link directly on already selected text, VisualEditor will replace the selected text with the file information. It is therefore advisable to insert a file link via VisualEditor when the cursor is located at a blank space.


Maximum file size

The maximum allowed file size cannot be configured in the wiki itself. The maximum allowed limit is defined on the server in the php.ini file in the PHP installation. The actual (possibly smaller) limit, however, is set in the BlueSpice installation in LocalSettings.php or another configuration file in the settings.d folder. The default setting is 32 MB.

Contact your wiki administrator if you receive an error message when trying to upload a larger file.

Avoiding unusual file names

Note:When uploading a new file, you should check the file/page name for unusual special characters (e.g., ", %, /,< ,>, [ ,], {, }). Change the name to include only standard characters, since the server file system could have problems with them or since some characters have special meanings in MediaWiki.

The special characters (, ), &, + can be used and are translated into their equivalent %-hex notation.


: will be converted to spaces, unless it is part of an existing namespace prefix.



To submit feedback about this documentation, visit our community forum.

Discussions