WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2016 01:19:24 AM (4 years ago)
Author:
azaozz
Message:

TinyMCE: fix toolbars alignment in RTL.

Fixes #37760 for trunk.

File:
1 edited

Legend:

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

    r38159 r38349  
    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.