/** * Add content width parameter to the WordPress editor */ function graphene_editor_width() { global $content_width, $graphene_settings; $content_width = graphene_get_content_width(); ?> <script type="text/javascript"> jQuery(document).ready(function($) { setTimeout( function(){ $('#content_ifr').contents().find('#tinymce').css( 'width', '<?php echo $content_width; ?> ' ); }, 2000 ); }); </script> <?php }
function graphene_set_content_width() { global $content_width; $content_width = graphene_get_content_width(); }
<?php } ?> <?php if ($has_uploaded_video || $has_uploaded_audio) { the_remaining_content(); } else { the_content(); } ?> <?php /* Revert the content_width var for video post format */ if ($post_format == 'video') { $content_width = graphene_get_content_width(); } ?> <?php if (in_array($post_format, array('image', 'video'))) { ?> <?php if (has_excerpt()) { ?> <div class="entry-description"><?php the_excerpt(); ?> </div> <?php
/** * Add content width parameter to the WordPress editor */ function graphene_editor_width($mce_css) { global $content_width, $graphene_settings; $content_width = graphene_get_content_width(); if (!$graphene_settings['disable_editor_style']) { $mce_css = str_replace('admin/editor.css.php', add_query_arg('content_width', $content_width, 'admin/editor.css.php'), $mce_css); } return $mce_css; }