#31163 closed defect (bug) (fixed)
Cannot disable the text editor without auto expand breaking
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | 4.0 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | javascript | Cc: |
Description
Test:
add_filter( 'wp_editor_settings', function( $settings, $id ) {
if ( $id === 'content' ) {
$settings['quicktags'] = false;
}
return $settings;
}, 10, 2 );
We're assuming both editors will be there, but plugins can disable one.
Additionally, the DFW button disappears.
Attachments (1)
Change History (6)
#2
in reply to:
↑ 1
@
11 years ago
Replying to DrewAPicture:
I can't confirm that auto-expand breaks –– I tried it before and after and it worked fine both times.
Auto-expand seems to work for me as well, but I see a JS error in Debug Bar, in both Firefox and Chrome:
TypeError: $top.parent(...).offset(...) is undefined http://trunk.wordpress/wp-admin/js/editor-expand.js?ver=4.2-alpha-31308 line 353
#3
@
11 years ago
- Keywords has-patch added; reporter-feedback removed
- Milestone changed from Awaiting Review to 4.2
Note: See
TracTickets for help on using
tickets.
I can't confirm that auto-expand breaks –– I tried it before and after and it worked fine both times. I can however confirm that the DFW button disappears. This is latest Firefox if you think that makes a difference.