Make WordPress Core


Ignore:
Timestamp:
08/31/2016 11:42:15 PM (8 years ago)
Author:
jeremyfelt
Message:

TinyMCE: fix toolbars alignment in RTL.

Merge of [38349] to the 4.6 branch.

Props azaozz, geminorum for testing.
Fixes #37760.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-includes/class-wp-editor.php

    r38159 r38488  
    12601260
    12611261            if ( typeof tinymce !== 'undefined' ) {
     1262                // Fix RTL
     1263                tinymce.on( 'addeditor', function( event ) {
     1264                    event.editor.rtl = event.editor.settings.rtl_ui ||
     1265                        ( event.editor.editorManager &&
     1266                        event.editor.editorManager.i18n &&
     1267                        event.editor.editorManager.i18n.rtl );
     1268                }, true );
     1269
    12621270                for ( id in tinyMCEPreInit.mceInit ) {
    12631271                    init = tinyMCEPreInit.mceInit[id];
Note: See TracChangeset for help on using the changeset viewer.