Questions answered by this recipe
Note that the NotSavedWarning recipe includes a feature similar to this one.
Return the editing textarea to the previous position when previewing a page.
- Add the following to your config file:
- Add the directive
(:input e_scrolltop:)just after
(:input e_form:)on your Site.EditForm page.
In quick testing, the script appears to work in everything from at least IE6 onwards.
- PITS.01019 Store the position of scrollbar of textarea when preview
- NotSavedWarning has a similar feature built-in. (Warn authors when they move away from a page without saving it; optionally request an edit summary or an author name)
This is cool...but does not seem to work in IE6 or FF3... I think I have installed as prescribed. I am using fixflow skin. When I edit a page, the var "ps" is always null and gives an error on the "if ( ps.value > 0 )" line. JJ? 08/03/2009
Site.EditFormso try adding
(:input e_scrolltop:)to that page. —Eemeli Aro August 04, 2009, at 06:44 PM
Nice, thank you! --SteP December 14, 2009
Does someone have this cookbook working with (vista+)IE8 (and how ?) ? I don't (though it's working with Vista+Google Chrome and with XP+IE6 and with XP+Opera 9.64). Thank you.
gb December 16, 2009, at 04:48 PM