Making WordPress.org


Ignore:
Timestamp:
08/09/2016 06:06:41 PM (8 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Add a comment preview to the front-end form for user contributed notes.

  • Preview is fetched via AJAX.
  • Preview updates 1.5 seconds after user stops typing.
  • Adds editor toolbar button "preview note".
  • Moves filtering of 'syntaxhighlighter_htmlresult' outside of just handbooks since it can also be applied elsewhere.

Props keesiemeijer.
Fixes #1865.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r3753 r3788  
    11831183        }
    11841184
    1185         .comment-list li {
     1185        .comment-list li,
     1186        #comment-preview {
    11861187            margin-top: 2.5rem;
    11871188            background: #fff;
     
    11931194                overflow: auto;
    11941195            }
     1196        }
     1197
     1198        #comment-preview {
     1199            clear:both;
     1200        }
     1201
     1202        #comment-preview .comment-content {
     1203            min-height: 6em;
     1204        }
     1205
     1206        #comment-preview .spinner {
     1207            background: url("/wp-includes/images/spinner-2x.gif") no-repeat scroll 0 50%;
     1208            -webkit-background-size: 20px 20px;
     1209            background-size: 20px 20px;
     1210            margin: 0 0.5em;
     1211            padding-left: 20px;
    11951212        }
    11961213
Note: See TracChangeset for help on using the changeset viewer.