#31163 closed defect (bug) (fixed)
Cannot disable the text editor without auto expand breaking
| Reported by: | iseulde | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Editor | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
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
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.