WordPress.org

Ready to get started?Download WordPress

Forums

How to turn off preview mode (18 posts)

  1. nathanmo
    Member
    Posted 8 years ago #

    The only thing I don't like about 2.0 is that preview mode.. Anybody know how to turn it off?

  2. MichaelH
    Member
    Posted 8 years ago #

    Uncheck the "Use the visual rich editor when writing" in your Admin, Users, Your Profile panel, at the bottom of that screen.

    For all new subsequent users, you can uncheck "Users should use the visual rich editor by default" in Admin, Options, Writing.

  3. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    The preview viewer is enabled in both WYSIWYG and HTML editors... so disabling the WYSIWIG editor won't disable the preview viewer...

  4. nathanmo
    Member
    Posted 8 years ago #

    Hrm.. yeah I didn't think that option would do it. That preview mode is so annoying, cause it has to load the whole page to preview it and it takes too long if you gotta graphics heavy site.

  5. MichaelH
    Member
    Posted 8 years ago #

    chipbennett is correct; I didn't look far enough.

  6. Kafkaesqui

    Posted 8 years ago #

    How about a little (Little? Tiny!) plugin to handle things:

    Hide Post Preview:
    download file | view source

    Download the file, upload it to your plugins directory, activate Hide Post Preview under plugins, and...you're done.

  7. nathanmo
    Member
    Posted 8 years ago #

    That rocks my socks. Thanks.

  8. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    Wow, yeah... what he said!

    The only thing is, if I'm understanding correctly what you're doing, the preview is still there, the display is just set to "none"?

    So, there's no bandwidth/download/refresh time savings; it just doesn't display?

  9. Kafkaesqui

    Posted 8 years ago #

    There is a savings in the sense that hiding the preview div keeps the browser from displaying it, so the delay caused from loading the page in the iframe is bypassed.

    The better solution would be to go into post.php and edit out the iframe. But the plugin is *a* solution, and a pretty good example (if I say so myself) of how one goes about modifying portions of their admin without editing core files.

  10. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    Interesting; so the browser doesn't load the contents of the iframe if the iframe display is set to "none"?

    And, agreed - I definitely appreciate the elegance of the fix!

  11. Kafkaesqui

    Posted 8 years ago #

    Pretty much. Certainly the iframe is still there hidden away in the source, but as the browser is told to ignore it, it won't make any http requests for the document and its content.

  12. Kafkaesqui

    Posted 8 years ago #

    Actually, scratch my last reply. The http requests occur, but delays relating to loading and displaying the document in the iframe don't.

  13. fi2c
    Member
    Posted 8 years ago #

    The problem I have with your plugin is that I use a framebreaker script in my template. When you just hide the review it still breaks the frame, so no edit is possible. The only way I had was changing the source codes which would be a problem in the updates. Was interesting if there was a plugin for this.

  14. Kafkaesqui

    Posted 8 years ago #

    If you just have "frame buster" javascript code in your <head>, see this post:

    http://wordpress.org/support/topic/57686#post-311849

    If using the Semiologic Frame Buster plugin, I believe the current version deals with this problem.

  15. Keilya
    Member
    Posted 8 years ago #

    Heyo, just to help anyone who's searching how to turn off post preview so as to save bandwidth: http://wordpress.org/support/topic/62137?replies=5

    Read the 2nd post by Podz there, works like a wonder. =)

  16. homeboi777
    Member
    Posted 8 years ago #

    cool this helped me thanks

  17. lencrockett
    Member
    Posted 7 years ago #

    if you want to leave preview on but wish to retain your framebreaker add this to your header.php

    <!-- frame buster -->
    <?
    $preview = $_REQUEST['preview'];
    if ($preview == "") {
    $preview = "false";
    }
    ?>
    <script type="text/javascript">
    var preview = <?php echo $preview; ?>;
    if (preview != true && self != top)
    {
    top.location.href = document.location.href;
    }
    </script>
    <!-- end frame buster -->

  18. MrFlora
    Member
    Posted 7 years ago #

    That didn't work. It wasn't breaking frames anymore. Do I need to add something to those lines of code in your post to get it to work lencrockett?

Topic Closed

This topic has been closed to new replies.

About this Topic