Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-57800

Inline comment is broken if a page contains a hidden Page Properties Macro and/or anchor link

XMLWordPrintable

      Issue Summary

      Cannot add inline comments to similar words that exist inside a macro body, which could also be hidden. For example, in a page, a macro body contains the text "This is inside a macro" and the text "I am not inside" lives outside the macro.

      Adding an inline comment to the word "inside" results in this error

      We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text.
      

      Steps to reproduce

      Steps to reproduce for hidden Page Properties Macro:

      Cannot add inline comment to a string or substring which is similar to the content inside hidden macro

      1. Start editing a page, insert a "Page properties" macro with the option "Hidden" switched ON.
      2. Type some text inside the macro.
      3. Type the same text outside the macro.
      4. Save the page.

      From now on you won't be able to make inline comment for any substring, which matches the text inside the macro.

      Steps to reproduce for anchor link:

      Cannot add inline comment to a string or substring which is similar to anchor link

      1. Start editing a page, insert a TOC macro
      2. Adding heading 1 with some text
      3. Save a page

      From now on we cannot add an inline comment into any string or substring of heading text (in step 2). You can use another macro which can generate an anchor link other than TOC macro.

      Some example macros are: Table of Content Zone Macro, Link to an Anchor Macro on the same page.

      Expected Results

      Inline comments will be placed successfully.

      Actual Results

      We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text.
      

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available

      Notes

      Seems like matchIndex and numMatches values are incorrect due to the texts inside the macro body being matched.

              dluong Duy Truong Luong
              iragudo Ian Ragudo
              Votes:
              74 Vote for this issue
              Watchers:
              73 Start watching this issue

                Created:
                Updated:
                Resolved: