WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40083, comment 1


Ignore:
Timestamp:
03/09/2017 09:37:30 PM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40083, comment 1

    initial v1  
    11This is expected behavior. Most users prefer either the Visual or the Text editor. The user preference for which editor to load first is "global".
    22
    3 In your plugin you can change the behavior by setting it to the state of one of the editors `onbeforeunload`. See: https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-admin/js/editor.js#L84 and https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-admin/js/editor.js#L115.
     3In your plugin you can change the behavior by setting it to the state of one of the editors `onunload`. See: https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-admin/js/editor.js#L84 and https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-admin/js/editor.js#L115.