Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#29423 closed defect (bug) (fixed)

Add a filter to disable editor scrolling from PHP

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 4.0 Priority: normal
Severity: normal Version: 4.0
Component: Editor Keywords: has-patch commit dev-reviewed
Focuses: Cc:


Currently this can be done by deregistering editor-expand.js and unsetting wp_autoresize_on in the TinyMCE init array, but having a filter would make it very straightforward and will be much more future-proof.

Attachments (2)

29423.patch (1.4 KB) - added by azaozz 9 years ago.
29423.diff (698 bytes) - added by DrewAPicture 9 years ago.
filter docs

Download all attachments as: .zip

Change History (10)

9 years ago

#1 @azaozz
9 years ago

In 29423.patch: add wp_editor_expand filter. Returning false from it will disable editor scrolling and hide the screen option.

#2 @azaozz
9 years ago

  • Keywords commit added

#3 @nacin
9 years ago

  • Keywords has-patch dev-reviewed added

Much nicer. Go for it.

#4 @azaozz
9 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 29653:

Editor expand: add a filter to turn it off from PHP, fixes #29423

#5 @SergeyBiryukov
9 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Filter docs should be added.

9 years ago

filter docs

#6 @DrewAPicture
9 years ago

29423.diff adds filter docs.

#7 @azaozz
9 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 29654:

Editor expand: add docs for the wp_editor_expand filter, props DrewAPicture, fixes #29423

#8 @SergeyBiryukov
9 years ago

#29507 was marked as a duplicate.

Note: See TracTickets for help on using tickets.