Wiki source code of Simple vs. Advanced Editing

Last modified by Vincent Massol on 2025/05/07

Show last authors
1 There are two types of users in XWiki, [[Simple and Advanced users>>extensions:Extension.User Module.User Profile Application.UserTypes.WebHome]]. Depending on the type a user has, the editing capabilities are different.
2
3 {{id name="HSimpleMode"/}}
4
5 == Simple user ==
6
7 {{image reference="EditSimpleMode.png" width="650px"/}}
8
9 Clicking on the "Edit" button has the following behavior for a Simple user:
10
11 * If the page is displayed by a [[sheet>>extensions:Extension.Sheet Module]] (e.g., has an associated object with a sheet), then the page is edited in [[Inline form>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HFormeditingmode28akainlinemode29"]] edit mode.
12 * If the page is a plain wiki page (i.e., doesn't use a sheet):
13 ** If WYSIWYG is the defined editor //and// the page syntax supports it, editing happens [[in-place>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HIn-placeediting"]].
14 ** Otherwise, editing defaults to the [[Wiki edit mode>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HWikieditingmode"]].
15
16 {{id name="HAdvancedMode"/}}
17
18 == Advanced user ==
19
20 The Advanced user type provides access to all editing modes, intended for users familiar with XWiki internals and programming features. After switching to the Advanced type from the [[User Profile>>extensions:Extension.User Module.User Profile Application.WebHome]] page, the "Edit" button reveals a dropdown with the following options:
21
22 * [[WYSIWYG>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HStandaloneeditingmode"]]: Edit page content using the standalone WYSIWYG editor.
23 * [[Wiki>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HWikiediting"]]: Edit raw wiki content.
24 * [[Form Editing Mode>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HFormeditingmode28akainlinemode29"]]: Edit page content via a form (when a sheet is available).
25 * [[Object Editing Mode>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HObjectseditingmode"]]: Edit objects attached to the page.
26 * [[Class Editing Mode>>Documentation.UserGuide.Features.PageEditing.WebHome||anchor="HClasseseditingmode"]]: Edit the class definition associated with the page.
27
28 {{image reference="EditAdvancedMode.png" width="650px"/}}

Get Connected