Some time ago, blogger made an update about the XML editor system. The most striking thing about this update is the change in the behavior of the XML Editor in storing and validating XML code. In the current system, all code processing activities are carried out directly. Such as sorting attributes alphabetically, parsing special characters, and so on.
On the current system, when the save process is complete, the code that we see in the XML editor is already the final code. This is unlike the previous system which did code processing after the editor interface was closed.
On this new system, there is an issue related to the behavior of the XML editor when the XML save process is complete. The editor interface will automatically scroll to the top every time the save process is complete. This is certainly very disturbing because we have to go back and forth to the last editing position. Especially for XML code that already involves tens of thousands of code, this will greatly hinder editing activities.
The point of this installation process is to add a Bookmark in the browser by putting the script above as a URL. This installation guide uses the Google Chrome browser with the following steps:
- In the Bookmarks bar of the browser, right click and select Add page.
- Write name the bookmark as you wish in the Name section. Copy and Paste all the bookmark script code above into the URL section. Finally, save bookmarks to complete the installation process.
If there are no errors, the bookmark you added should already be in the Bookmarks bar of the browser. More or less like this:
On the XML editor tab, Click Created Bookmark. You will see a new indicator element added at the top of the XML editor informing you that the auto scroll prevention function is enabled.
This function has been tested and works well on the latest version of Google Chrome browser. For other browsers, please try.