Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3750

Automatically fill the "label" field when it has not been filled by the user

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0 M3
    • 1.8.2
    • WYSIWYG Editor
    • None
    • Integration
    • Unknown

    Description

      In the new WYSIWYG editor, when creating a link towards an attachment, the user is currently expected to fill the "label" field. Not doing so results in a JS error to be thrown. This behavior will make the user freak out.

      In order to improve this situation, the suggested solution is the following:

      • On the "Edit link parameters", automatically input the filename as a label (the user can edit it)
      • If the user chooses to edit a link pointing towards an attachment, implement the following check:
        • If the label is the same as the finename -> update the label with the name of the new file
        • If the label differs from the filename -> keep the label

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              wikibc Guillaume Lerouge
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: