Make WordPress Core

Changeset 31787


Ignore:
Timestamp:
03/15/2015 11:28:04 PM (12 years ago)
Author:
azaozz
Message:

Emoji: fix few typos. See #31242.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js

    r31786 r31787  
    2424                } );
    2525
    26                 editor.on( 'input', function( event ) {
     26                editor.on( 'input', function() {
    2727                        if ( typing ) {
    2828                                return;
     
    5353                                replaceEmoji( node );
    5454
    55                                 // In IE all content in the editor is left selected aftrer wp.emoji.parse()...
     55                                // In IE all content in the editor is left selected after wp.emoji.parse()...
    5656                                // Collapse the selection to the beginning.
    5757                                if ( tinymce.Env.ie && tinymce.Env.ie < 9 && event.load && node && node.nodeName === 'BODY' ) {
     
    6161                } );
    6262
    63                 // Convert Twemoji compatible pasted emoji repacement images into our format.
     63                // Convert Twemoji compatible pasted emoji replacement images into our format.
    6464                editor.on( 'PastePostProcess', function( event ) {
    6565                        if ( twemoji ) {
  • trunk/src/wp-includes/js/wp-emoji.js

    r31786 r31787  
    8989                                /*
    9090                                 * This works because the image will be one of three things:
    91                                  * - Two empty squares, if the browser doen't render emoji
    92                                  * - Two squares with 'G' and 'B' in them, if the browser doen't render flag emoji
     91                                 * - Two empty squares, if the browser doesn't render emoji
     92                                 * - Two squares with 'G' and 'B' in them, if the browser doesn't render flag emoji
    9393                                 * - The British flag
    9494                                 *
Note: See TracChangeset for help on using the changeset viewer.