]> git.mjollnir.org Git - moodle.git/commitdiff
Added support for right-to-left languages in html editor MDL-10768
authormoodler <moodler>
Thu, 9 Aug 2007 08:42:36 +0000 (08:42 +0000)
committermoodler <moodler>
Thu, 9 Aug 2007 08:42:36 +0000 (08:42 +0000)
lib/editor/htmlarea/htmlarea.php

index 93c39e0b0d5f696f7ed99674207dfb6631dc4507..f16df1596ca3307fc3e82020dce436cbf28da65f 100644 (file)
@@ -734,7 +734,7 @@ HTMLArea.prototype.generate = function () {
         html += '<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n';
         if (editor.config.baseURL)
             html += '<base href="' + editor.config.baseURL + '" />';
-        html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; }</style>\n";
+        html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; } body { direction: <?php echo get_string('thisdirection')?>; } </style>\n"; // RTL support: direction added for RTL support
         html += "</head>\n";
         html += '<body>\n';
         html += editor._textArea.value;