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

Unable to double click to edit an inline macro in WYSIWYG

    Details

    • Tests:
      Integration
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Not working when double clicking on a macro:

      "{{info}}XXX{{/info}}x"

      ^^^ inline macro, followed by content

      "{{info}}XXX{{/info}}{{info}}YYY{{/info}}"

      ^^^ inline macro, followed by another macro

      "{{info}}XXX{{/info}}{{info}}YYY{{/info}}
      "

      ^^^ inline macros followed by an empty new line

      What actually happens:
      Same behavior as pressing CTRL+A (select all). The entire wysiwyg's content is selected.

      Note: In the above not-working case, a workaround can be used by double-clicking on the macro's border, around the macro's (text) output. Double-clicking on the macro's output (text) does not work.

      What works as expected:

      "{{info}}XXX{{/info}} "

      ^^^ inline macro, followed by a space

      "{{info}}XXX{{/info}}"

      ^^^ block macro, nothing else on the line

      "{{info}}XXX{{/info}}{{info}}YYY{{/info}}
      s"
      "{{info}}XXX{{/info}}{{info}}YYY{{/info}}
       "

      ^^^ 2 inline macros, followed by content on a new line

      Reproduced on 6.2-rc1, 5.4.3 and probably is present on previous versions as well.

      Caught by failing test: org.xwiki.test.wysiwyg.MacroTest.testDoubleClickToEditMacro

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: