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

WYSIWYG editor treats macro parameter names as case sensitive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1, 1.9 M1
    • Fix Version/s: 1.8.2, 1.9 M2
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Environment:
      any
    • keywords:
      macro parameter name case sensitive
    • Tests:
      Unit, Integration
    • Similar issues:

      Description

      The WYSIWYG editor should ignore the case in macro parameter names. Precisely, the editor should generate case sensitive parameter names but should also understand case insensitive. For instance, if you write in Wiki editor:

      {{box cssclass="foo"}}bar{{/box}}
      

      and then go to WYSIWYG and edit the box parameter you should see "foo" as the value of the cssClass parameter. The same should happen if you write:

      {{box cssClass="foo"}}bar{{/box}}
      

      Notice the came case this time. Now, If you edit the macro, apply the changes and go to Wiki editor you should get:

      {{box cssClass="xyz"}}abc{{/box}}
      

      Notice again the camel case in the parameter name.

      So, detect case insensitive, but generate case sensitive.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: