includes/clientside/static/tinymce-init.js
changeset 1254 221d14331ebe
parent 1227 bdac73ed481e
--- a/includes/clientside/static/tinymce-init.js	Mon Jun 28 10:43:04 2010 -0400
+++ b/includes/clientside/static/tinymce-init.js	Mon Jun 28 13:31:21 2010 -0400
@@ -32,6 +32,9 @@
 var _skin = ( typeof(tinymce_skin) == 'string' ) ? tinymce_skin : 'default';
 var tinymce_initted = false;
 
+var html = document.getElementsByTagName('html')[0];
+var direction = typeof(html.dir) != 'undefined' ? html.dir : 'ltr';
+
 var enano_tinymce_options = {
 	mode : "none",
 	plugins : 'table,save,safari,pagebreak,style,layer,advhr,insertdatetime,searchreplace,spellchecker,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,wordcount' + do_popups,
@@ -47,7 +50,8 @@
 	theme_advanced_statusbar_location : 'bottom',
 	noneditable_noneditable_class : 'mce_readonly',
 	content_css : css_url,
-	spellchecker_rpc_url : scriptPath + '/includes/clientside/tinymce/plugins/spellchecker/rpc.php'
+	spellchecker_rpc_url : scriptPath + '/includes/clientside/tinymce/plugins/spellchecker/rpc.php',
+	directionality : direction
 };
 
 var enano_tinymce_gz_options = {