Make WordPress Core


Ignore:
Timestamp:
05/08/2017 05:31:08 AM (9 years ago)
Author:
azaozz
Message:

TinyMCE: update to 4.6.0. Has many new features and bug fixes, changelog: ​https://www.tinymce.com/docs/changelog/#version460-may42017.

Fixes #40690.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r40515 r40583  
    948948                        'resize' => 'vertical',
    949949                        'menubar' => false,
     950                        'branding' => false,
    950951
    951952                        // Limit the preview styles in the menu/toolbar
    … …  
    10401041                        'Anchor' => _x( 'Anchor', 'Link anchor (TinyMCE)' ),
    10411042                        'Anchors' => _x( 'Anchors', 'Link anchors (TinyMCE)' ),
     1043                        'Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.' =>
     1044                                __( 'Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.' ),
     1045                        'Id' => _x( 'Id', 'Id for link anchor (TinyMCE)' ),
    10421046
    10431047                        // Fullpage plugin
    … …  
    10511055
    10521056                        // Media, image plugins
     1057                        'Image' => __( 'Image' ),
    10531058                        'Insert/edit image' => array( __( 'Insert/edit image' ), 'accessM' ),
    10541059                        'General' => __( 'General' ),
    … …  
    10621067                        'Dimensions' => __( 'Dimensions' ),
    10631068                        'Insert image' => __( 'Insert image' ),
     1069                        'Date/time' => __( 'Date/time' ),
    10641070                        'Insert date/time' => __( 'Insert date/time' ),
    1065                         'Insert/edit video' => __( 'Insert/edit video' ),
     1071                        'Table of Contents' => __( 'Table of Contents' ),
     1072                        'Insert/Edit code sample' => __( 'Insert/edit code sample' ),
     1073                        'Language' => __( 'Language' ),
     1074                        'Media' => __( 'Media' ),
     1075                        'Insert/edit media' => __( 'Insert/edit media' ),
    10661076                        'Poster' => __( 'Poster' ),
    10671077                        'Alternative source' => __( 'Alternative source' ),
    … …  
    10881098                        'Remove link' => array( __( 'Remove link' ), 'accessS' ),
    10891099
     1100                        // Link plugin
     1101                        'Link' => __( 'Link' ),
     1102                        'Insert link' => __( 'Insert link' ),
     1103                        'Insert/edit link' => __( 'Insert/edit link' ),
     1104                        'Target' => __( 'Target' ),
     1105                        'New window' => __( 'New window' ),
     1106                        'Text to display' => __( 'Text to display' ),
     1107                        'Url' => __( 'URL' ),
     1108                        'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?' =>
     1109                                __( 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?' ),
     1110                        'The URL you entered seems to be an external link. Do you want to add the required http:// prefix?' =>
     1111                                __( 'The URL you entered seems to be an external link. Do you want to add the required http:// prefix?' ),
     1112
    10901113                        'Color' => __( 'Color' ),
    10911114                        'Custom color' => __( 'Custom color' ),
    10921115                        'Custom...' => _x( 'Custom...', 'label for custom color' ), // no ellipsis
    10931116                        'No color' => __( 'No color' ),
     1117                        'R' => _x( 'R', 'Short for red in RGB' ),
     1118                        'G' => _x( 'G', 'Short for green in RGB' ),
     1119                        'B' => _x( 'B', 'Short for blue in RGB' ),
    10941120
    10951121                        // Spelling, search/replace plugins
    … …  
    12361262                }
    12371263
    1238                 /**
    1239                  * Link plugin (not included):
    1240                  *      Insert link
    1241                  *      Target
    1242                  *      New window
    1243                  *      Text to display
    1244                  *      The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?
    1245                  *      The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?
    1246                  *      Url
    1247                  */
     1264                /*
     1265                Imagetools plugin (not included):
     1266                        'Edit image' => __( 'Edit image' ),
     1267                        'Image options' => __( 'Image options' ),
     1268                        'Back' => __( 'Back' ),
     1269                        'Invert' => __( 'Invert' ),
     1270                        'Flip horizontally' => __( 'Flip horizontally' ),
     1271                        'Flip vertically' => __( 'Flip vertically' ),
     1272                        'Crop' => __( 'Crop' ),
     1273                        'Orientation' => __( 'Orientation' ),
     1274                        'Resize' => __( 'Resize' ),
     1275                        'Rotate clockwise' => __( 'Rotate clockwise' ),
     1276                        'Rotate counterclockwise' => __( 'Rotate counterclockwise' ),
     1277                        'Sharpen' => __( 'Sharpen' ),
     1278                        'Brightness' => __( 'Brightness' ),
     1279                        'Color levels' => __( 'Color levels' ),
     1280                        'Contrast' => __( 'Contrast' ),
     1281                        'Gamma' => __( 'Gamma' ),
     1282                        'Zoom in' => __( 'Zoom in' ),
     1283                        'Zoom out' => __( 'Zoom out' ),
     1284                */
    12481285
    12491286                return self::$translation;
    … …  
    14571494
    14581495                        if ( typeof tinymce !== 'undefined' ) {
     1496                                if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) {
     1497                                        tinymce.$( '.wp-editor-wrap ' ).removeClass( 'tmce-active' ).addClass( 'html-active' );
     1498                                        return;
     1499                                }
     1500
    14591501                                for ( id in tinyMCEPreInit.mceInit ) {
    14601502                                        init = tinyMCEPreInit.mceInit[id];
Note: See TracChangeset for help on using the changeset viewer.