There are 7 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-cb453729-ccc5-46c2-80ab-fb8866da37b6 XWIKI-23279 Closed

Inserting a macro from standalone edit mode scrolls the edited conent to the top

 
View issue   ยท   Add comment
 

7 updates

 
cid:jira-generated-image-avatar-776c802b-2b8a-4539-ac52-ee39861cffae Changes by Marius Dumitru Florea on 11/Jun/25 12:34
 
Summary: Inserting a macro from standalone edit mode scrolls the edited conent to the top of the page when editing a page with edit sheet
Documentation in Release Notes: N/A
Documentation: N/A
Description: *Steps to reproduce:*

#
Go to Edit the movies demo application
# Click on the
Sandbox home page in Standalone WYSIWYG edit link of the first entry mode
#
Enlarge the upper editor to make it large enough to fill the screen
#
Scroll to the lower editor end of the content
# Insert any macro like the HTML macro

*Expected result:*

The inserted macro is
selected and visible (in view port) .

*Actual result:*

The
page edited content is scrolled to the top , . You have to scroll back to the editor where end of the macro was content to see the inserted isn't visible at all macro .

Note that the same happens if you edit a TextArea property using the WYSIWYG editor (because the same standalone WYSIWYG editor is used). E.g. edit an entry from the Movies AppWithinMinutes application.

I suspect that this is related to XWIKI-22965 as this touched the code for restoring selections and the affects versions match. I've reproduced this issue on 17.3.0, 17.2.0 and 16.10.6 but not on 16.10.5, 17.1.0.
Assignee: Marius Dumitru Florea
Resolution: Fixed
Status: Open Closed