Plugin Directory

Changeset 506909


Ignore:
Timestamp:
02/18/2012 10:57:14 AM (14 years ago)
Author:
Dimox
Message:
 
Location:
jquery-post-preview
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • jquery-post-preview/trunk/jquery-post-preview.css

    r105713 r506909  
    33    padding-right: 150px !important;
    44}
    5 * html #ed_toolbar {height: 1%}
    6 
     5#wp-content-editor-container {
     6    position: relative;
     7}
    78#preview-tab {
    89    position: absolute;
     
    1516    padding: 2px 4px;
    1617    font-size: 12px;
    17     -moz-border-radius: 3px;
    18     -khtml-border-radius: 3px;
    19     -webkit-border-radius: 3px;
    2018    border-radius: 3px;
    2119    background: #FFF url("../../../wp-admin/images/fade-butt.png") repeat-x 0 -2px;
    2220    cursor: pointer;
    23     color: #203E56;
     21}
     22#wp-content-editor-container #preview-tab {
     23    top: 3px;
    2424}
    2525#preview-tab:hover {
     
    2828    color: #000;
    2929}
    30 
    3130#textarea_clone {
    3231    height: 0;
    3332    overflow: hidden;
    3433}
    35 
    3634#content_preview {
    3735    background: #FFF;
    38     padding: 5px 6px 7px;
     36    padding: 10px 10px 17px;
    3937    overflow: auto;
    4038    font-size: 13px;
  • jquery-post-preview/trunk/jquery-post-preview.php

    r129387 r506909  
    44Plugin URI: http://articlesss.com/jquery-post-preview-wordpress-plugin/
    55Description: Live post preview on "Write/Edit post" page of WordPress admin area using jQuery.
    6 Version: 0.1
     6Version: 0.2
    77Author: Dimox
    8 Author URI: http://dimox.name/
     8Author URI: http://dimox.net/
    99*/
    1010
     
    3535    var textarea_height = $j(textarea).height();
    3636
    37     $j('#ed_toolbar').append('<input type="button" id="preview-tab" value="'+show_text+'" />');
    38     //$j(textarea).after('<textarea id="textarea_test" cols="170%" rows="20"></textarea>');
     37    if ( $j('#wp-content-editor-container').length ) {
     38        $j('#wp-content-editor-container').append('<input type="button" id="preview-tab" value="'+show_text+'" />');
     39    } else {
     40        $j('#ed_toolbar').append('<input type="button" id="preview-tab" value="'+show_text+'" />');
     41    }
    3942
    4043    $j('#preview-tab').toggle(
     
    6568            $j('#content_preview').html(content_preview);
    6669
    67             //$j('#textarea_test').text($j('#content_preview').html());
    6870        },
    6971        function() {
  • jquery-post-preview/trunk/readme.txt

    r156398 r506909  
    11=== jQuery Post Preview ===
    22Contributors: Dimox
    3 Donate link: http://daopay.com/payment/?appcode=53988&prodcode=1
     3Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H7X3M4JL8N7Q4
    44Tags: jQuery, post, preview, admin
    55Requires at least: 2.5
    66Tested up to:
    7 Stable tag: 0.1
     7Stable tag: 0.2
    88
    99Live post preview on "Write/Edit post" page of WordPress admin area using jQuery.
     
    2525
    26261. jQuery Post Preview in action
     27
     28== Changelog ==
     29
     30= 0.2 =
     31* Changes to work with WordPress 3.3.
     32
     33= 0.1 =
     34* The initial version.
Note: See TracChangeset for help on using the changeset viewer.