Changes for page In-place Real-time Editing
Last modified by Vincent Massol on 2024/02/26 17:57
<
>
edited by Marius Dumitru Florea
on 2020/02/24 14:43
on 2020/02/24 14:43
edited by Marius Dumitru Florea
on 2020/02/24 18:19
on 2020/02/24 18:19
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -197,3 +197,41 @@ 197 197 == UC10: Change the wiki logo == 198 198 199 199 You want to change the wiki logo, either for the entire wiki or just for a specific page and its children. 200 + 201 += Constraints = 202 + 203 +== Plain wiki pages == 204 + 205 +Wiki pages have **editable metadata** that is currently not displayed in view mode and thus it cannot be edited in-place as is. We either find a place for this metadata in view mode or we keep a dedicated edit mode for it. 206 + 207 +* **default language**, **syntax**, **hidden**: we have good defaults for these and they are rarely modified by simple users 208 +* **comment**, **minor edit** 209 +** the users rarely set them 210 +** they can be hidden from the administration 211 +** setting these while editing in-place is inconvenient so we'll have to drop them; but this means they will become less and less relevant as the users start using the in-place editing more and more 212 +** there is a setting to make the version summary (comment) mandatory; we'll have to disable in-place editing when this is on; we'll also have to keep the classic edit mode because of this 213 + 214 +The edit mode provides **tools** that are obviously not present in view mode and thus would be missing while editing in-place: 215 +** **auto save**: this is useful mainly when you edit the page content for a long period of time, thus it's probably not needed when editing in-place, but we should keep it for the classic edit mode 216 +** link to XWiki **syntax help** (only for Wiki edit mode) 217 +** link to configure **more syntaxes** 218 +** **included pages**: this information is shown in the "Information" tab but it's going to be easy to miss it while editing in-place because this tab is not active by default 219 +** **translations**: 220 +*** the current language 221 +*** links to existing translations 222 +*** link to create a new translation 223 + 224 += Solutions = 225 + 226 +== Real WYSIWYG Edit Mode == 227 + 228 +* Display the default language, syntax and hidden page metadata inside the "Information" page extra tab and make them editable in-place from there. Otherwise we need to keep a dedicated edit mode. Note that all the other page extra tabs have actions that modify the current page (comment, attach, revert), so being able to modify the current page from the "Information" tab shouldn't come as a surprise. At most we may consider changing the title of the tab, but I don't think it's necessary. 229 +** We'll have to move the link to configure more syntaxes also. An idea is to have this as an option in the syntax drop down (i.e. you select from the available syntaxes or you add more syntaxes). 230 +* Add a tool bar button for the Wiki editor and for the WYSIWYG editor (when in Source mode) to open the XWiki Syntax help (depending on the page syntax) 231 +* Display the language, the list of translations and the link to create a new translation (for the current UI language) inside the "Information". There's no reason to limit this to edit mode. Note that the list of existing translations is availalbe also in the drawer menu, but this has created confusion in the past because the users often ask "why can't I switch to XX language?" and the answer is "Because the current page is not translated in that language". I'd rather keep the drawer for changing the UI language (i.e. list all supported languages) and use the "Information" tab to list available page translations. 232 +* hide the title label (sr-only) and set the placeholder attribute of the title input 233 +* style the title text input so that it appears as in view mode (keep the border but use a bigger font size to match the level 1 heading styles) 234 +* show the author and last modification date (should we update these once the user makes modifications in order to match what the user will see in view mode?) 235 +* run CKEditor in in-line mode rather than using an iframe 236 +* show the tags, creator and creation date 237 +* show the same panels as in view mode and the page extra tabs