From 80067e8620aab23c18214a7744406cf238f1de41 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sun, 20 May 2012 23:27:06 +0300 Subject: [PATCH] Making ltr default for characters. Without this some conjoined ltr characters look weird in rtl wikis. Change-Id: I7f38a18fd0d9728f69c63abd77b095a34cffbcb2 --- modules/jquery.wikiEditor.toolbar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/jquery.wikiEditor.toolbar.js b/modules/jquery.wikiEditor.toolbar.js index 3f7937d8..9dbcc53e 100644 --- a/modules/jquery.wikiEditor.toolbar.js +++ b/modules/jquery.wikiEditor.toolbar.js @@ -500,6 +500,11 @@ fn: { } if ( 'direction' in page ) { $characters.attr( 'dir', page.direction ); + } else { + // By default it should be explicit ltr for all scripts. + // Without this some conjoined ltr characters look + // weird in rtl wikis. + $characters.attr( 'dir', 'ltr' ); } if ( 'characters' in page ) { html = '';