Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-830

Declare the content of the footnote macro as rich text

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.14, 18.8.0
    • Macro - Footnotes
    • None
    • Unknown

    Description

      The content of the footnote macro is wiki syntax, rendered with its formatting, but the macro declares it as a plain string. The WYSIWYG editor therefore never edits it in place: changing a footnote needs opening the Edit Macro dialog, where it is a plain text area of wiki syntax.

      The fix is done in FootnoteMacro.java:

      • Declare the content as rich text, a list of blocks, so that the editor can edit it in place with the formatting toolbar.
      • The footnote macro is inline, and the content of an inline macro cannot be edited in place yet, see XWIKI-19954.

      Depends on

      • XWIKI-19954, which adds the in-place editing of the content of inline macros.

      KOs covered

      Macro Criterion Problem Depends on
      footnote E6 inplace The content is wiki syntax rendered with its formatting, but declared as a plain string, so it is never edited in place: changing a footnote needs the Edit Macro dialog, where it is a plain text area of wiki syntax. XWIKI-19954

      Impact found on macro fluidity

      This KO comes from the WYSIWYG usability audit of the macros, under the criterion E6 inplace of its usability criteria, which asks that the content is edited in place, with an editing experience suited to its data, not in a text area of the Edit Macro dialog. The page of the macro, linked in the table, has the full notes and the steps to reproduce. It is also needed by XWIKI-25563, so that the Quick Action can insert the macro without the Edit Macro dialog.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: