As you probably know the WordPress theme editor remembers its last editing position, but I want my post editor to do the same (it jumps to the top if you save a post/page)…. Any tips/hacks how to resolve this ? Help with this is very much appreciated !!
Leave a Reply
You must be logged in to post a comment.
Are you referring to the Visual or the HTML editor or both?
According to jQuery Set Cursor Position in Text Area it is possible to set the cursor position for a textarea element. That is good news, as AFAIK the WordPress HTML editor is using a textarea element.
The WordPress Visual editor in difference is based on TinyMCE. TinyMCE does not support a cursor position natively (I assume this only, and it’s only backed this up by a first, quick googling ). So this is not possible out of the box.
But there are some resources that offer a method of how to do that with TinyMCE.
I think you could add a javascript that does the following:
Done.
See also: