Permalink
Browse files

Don't use TinyMCE in a meta box. It breaks stuff when the box is move…

…d around.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@947 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent d749fca commit 66ef5a75c973ea3923e25e42c2cf4e078d55194d greenshady committed Dec 9, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 admin/meta-box-theme-footer.php
@@ -40,10 +40,11 @@ function hybrid_meta_box_theme_display_footer() {
/* Add a textarea using the wp_editor() function to make it easier on users to add custom content. */
wp_editor(
- hybrid_get_setting( 'footer_insert' ), // Editor content.
- hybrid_settings_field_id( 'footer_insert' ), // Editor ID.
+ esc_textarea( hybrid_get_setting( 'footer_insert' ) ), // Editor content.
+ hybrid_settings_field_id( 'footer_insert' ), // Editor ID.
array(
- 'textarea_name' => hybrid_settings_field_name( 'footer_insert' )
+ 'tinymce' => false, // Don't use TinyMCE in a meta box.
+ 'textarea_name' => hybrid_settings_field_name( 'footer_insert' )
)
); ?>

0 comments on commit 66ef5a7

Please sign in to comment.