[pmwiki-users] save and edit issues

Patrick R. Michaud pmichaud at pobox.com
Sun Oct 9 09:27:02 CDT 2005


On Fri, Oct 07, 2005 at 11:33:15AM +0200, nexyufuli evo wrote:
> hi pm
> After push the "save and edit" button in large pages the text scrolls to 
> the top of the page, so that the autor has to find again the point where 
> he was working. Is it possible to change that, so that the posission 
> after saving is still the same?

Not without some Javascript support.  The "Save and edit"
button would have to use javascript to capture and encode the current
cursor position in the textarea  (assuming the browser provides that
information -- some do not), and then pass it along with the post
request to PmWiki.  PmWiki would then have to send the cursor
position information back to the browser when it re-displays
the edit page after the save, and javascript in the edit form
would then have to restore the cursor position.

This isn't to say it can't be done, or even that it's horribly
difficult -- it just means a lot of testing and development since
different browsers use different methods to store and set cursor
positions.

Pm




More information about the pmwiki-users mailing list