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

Default value of mandatory macro parameter cannot be used in WYSIWYG editor

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.4
    • Fix Version/s: None
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      It's apparently not possible to select the default value of a parameter when inserting a macro from the WYSIWYG editor.
      Replication steps:

      • Create a page Foo
      • Create a mandatory WikiMacroParameterClass named "bar" in it with a default value "bar"
      • Create a WikiMacroClass named "foo" containing the script:
        {{velocity}}$xcontext.macro.params.bar {{/velocity}}
        
      • Edit the page in WYSIWYG mode
      • Insert the macro with the default parameter value

      Expected result:

      • The macro can be inserted with default value

      Obtained result:

      • The macro cannot be inserted unless the value is different than the default value. Afterwards when editing the macro the value cannot be replaced by the default value.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              surli Simon Urli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: