Skip to content
Snippets Groups Projects
Commit a68d638f authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: rtl: Fixup redactor rtl blocks

parent 760ab5b6
No related branches found
No related tags found
No related merge requests found
......@@ -394,7 +394,7 @@
.thread-body blockquote,
.thread-body pre {
font-size: 14px;
line-height: 1.25rem;
line-height: 1.4rem;
}
/* Adjust plain/text messages posted as <pre> in the thread body to show in
......
......@@ -145,28 +145,19 @@ RedactorPlugins.textdirection = {
var button = this.buttonAdd('textdirection', __('Change Text Direction'),
false, dropdown);
if (this.opts.direction)
this.setRtl();
},
setRtl: function()
{
if (!this.opts.linebreaks) {
this.bufferSet();
this.blockSetAttr('dir', 'rtl');
}
else {
this.$editor.attr('dir', 'rtl');
}
this.$box.removeClass('ltr').addClass('rtl');
this.bufferSet();
this.blockSetAttr('dir', 'rtl');
},
setLtr: function()
{
if (!this.opts.linebreaks) {
this.bufferSet();
this.blockSetAttr('dir', 'ltr');
}
else {
this.$editor.attr('dir', 'ltr');
}
this.$box.removeClass('rtl').addClass('ltr');
this.bufferSet();
this.blockSetAttr('dir', 'ltr');
}
};
......@@ -233,7 +233,7 @@ $(function() {
'plugins': [],
'imageGetJson': 'ajax.php/draft/images/browse',
'syncBeforeCallback': captureImageSizes,
'linebreaks': true,
'linebreaks': !$('html').hasClass('rtl'),
'tabFocus': false,
'toolbarFixedBox': true,
'focusCallback': function() { this.$box.addClass('no-pjax'); },
......
......@@ -782,9 +782,8 @@ h2 .reload {
}
#threads li a {
display:block;
display:inline-block;
width:auto;
float:left;
height:30px;
line-height:30px;
border-top:1px solid #F4FAFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment