Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#24047 new enhancement

Line numbers in post editor text mode?

Reported by: dgwyer Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5.1
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 (5)

comment:1 ocean9012 months 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.

comment:2 follow-up: dgwyer12 months 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!

comment:3 markoheijnen12 months 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.

comment:4 in reply to: ↑ 2 SergeyBiryukov12 months 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.

comment:5 ziegenberg12 months ago

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

Note: See TracTickets for help on using tickets.