mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Added support for right-to-left languages in html editor MDL-10768
This commit is contained in:
parent
8047ab1d9d
commit
2730730381
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user