-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.4.5
-
None
-
8
-
Severity 3 - Minor
-
9
-
Issue Summary
Users are not able to create inline comments on texts that have been used in a Drawio plugin. For example if there is a Drawio diagram in a Confluence page that has a header with a string "Test", users cannot create an inline comment on any "Test" string anywhere in the page. The error message that is displayed is 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
- Create a new Confluence page.
- Create a diagram using drawio plugin with a heading
- Type the text "Test" in any heading cell.
- Type the text "Test" anywhere else in the page.
- Save the page.
- Highlight on the text "Test" from step 4 above and create an inline comment
- Type any comment on the inline comment text box and click Save
Expected Results
Once the user clicks on save, the inline comment should be available.
Actual Results
The error message We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text. will be displayed.
Note: The issue described here is case-sensitive. For example, if the table header has the text "Test", users will still be able to create inline comments for the text "test"
Workaround
It seems that this issue only occurs if the page has exact string that is there in header. So a workaround on this would be to select extra words along with the header word.
Long term solution
Unfortunately this is due to the way the draw.io macro renders in Confluence. The macro bypasses the normal macro rendering process which normally adds wrapping tags around the macro. The long term solution would have to be a fix on the draw.io side to add these wrapping tags:
<div class="conf-macro output-block" data-hasbody="false" data-macro-name="some-macro"> </div>