Make WordPress Core

Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#24047 closed enhancement (wontfix)

Line numbers in post editor text mode?

Reported by: dgwyer's profile dgwyer Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:


I would love to see line numbers in the post editor when in text mode. This and/or the cursor returning to the editing point when updating a post.

It can be very annoying that the cursor always returns to the top of the editor when a manual update is initiated. Making a lot of small edits in various parts of a longish post can be really tedious.

Change History (7)

#1 @ocean90
11 years ago

  • Keywords reporter-feedback added
  • Type changed from feature request to enhancement

Why do you need line numbers?

To save the scroll position you can use this plugin.

#2 follow-up: @dgwyer
11 years ago

It's pretty standard to use line numbers when editing HTML in IDE's. I find it off-putting to edit HTML code in the post editor where there are no line numbers. I keep losing my place when editing a long post.

Re the cursor issue, this should definitely be in core not just in a Plugin. I don't want to have to install a Plugin to retain my cursor position after manual updates!

#3 @markoheijnen
11 years ago

I don't see the need of line numbers in WordPress. The use case seems not that bug.

However I do think there is a place in core for keeping the scroll position.

#4 in reply to: ↑ 2 @SergeyBiryukov
11 years ago

  • Keywords reporter-feedback removed

Replying to dgwyer:

It's pretty standard to use line numbers when editing HTML in IDE's.

The consensus in #20993 was that the Text editor shouldn't really be advertised as an HTML editor, which is why it was renamed in 3.5.

#5 @ziegenberg
11 years ago

+1 for moving the "keeping the scroll position" into core.

#6 @iseulde
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version 3.5.1 deleted

I also think that we shouldn't add line numbers.

Not sure if the scroll position is still relevant... The editor automatically expands and you have to scroll to get to the publish box. The post will be auto-saved at regular intervals, so no need to save all the time. #22412 might also be a better solution.

#7 @SergeyBiryukov
9 years ago

FWIW, the Preserve Editor Scroll Position plugin linked in comment:1 doesn't work in 4.0 or 4.1.

Note: See TracTickets for help on using tickets.