Skip to content

Commit

Permalink
Use CSS to hide TinyMCE QuickTags buttons rather than removing them u…
Browse files Browse the repository at this point in the history
…sing the settings. This allows us to maintain the toolbar's height when switching between Text/Visual.
  • Loading branch information
johnbillion committed Feb 25, 2015
1 parent a3fc9c6 commit cab20a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions css/jobs-admin.css
Expand Up @@ -73,6 +73,11 @@ body.bbl-post-type-bbl_job #poststuff #post-body {
margin: 0;
}

#bbl-translation-editor .bbl-translation-original .quicktags-toolbar input,
#bbl-translation-editor .bbl-translation-original .mce-btn-group {
visibility: hidden;
}

#bbl-translation-editor .bbl-translation-original-post_title {
font-size: 1.7em;
line-height: 115%;
Expand Down
3 changes: 0 additions & 3 deletions templates-admin/translation-editor.php
Expand Up @@ -72,9 +72,6 @@
<?php wp_editor( $original->post_content, 'original_post_content', array(
'textarea_name' => 'bbl_original[post][post_content]',
'media_buttons' => false,
'quicktags' => array(
'buttons' => true,
),
'tinymce' => array(
'readonly' => 1,
),
Expand Down

0 comments on commit cab20a5

Please sign in to comment.