From 79e47be8ce1e1cd5bb70e247390e51f2f47fbeb9 Mon Sep 17 00:00:00 2001 From: Mohammad Farzan Date: Fri, 8 Nov 2019 02:22:57 +0330 Subject: [PATCH] unforce rtl output display --- notebook/static/notebook/js/outputarea.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index da72caa5ea..0b58b100a1 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -389,6 +389,8 @@ define([ OutputArea.prototype.create_output_subarea = function(md, classes, mime) { var subarea = $('
').addClass('output_subarea').addClass(classes); + // Unforce RTL + subarea.attr("dir","auto"); if (_get_metadata_key(md, 'isolated', mime)) { // Create an iframe to isolate the subarea from the rest of the // document @@ -462,6 +464,8 @@ define([ // the prompt area and the proper indentation. toinsert = this.create_output_area(); var subarea = $('
').addClass('output_subarea'); + // Unforce RTL + subarea.attr("dir","auto"); toinsert.append(subarea); this._append_javascript_error(err, subarea); this.element.append(toinsert); @@ -589,6 +593,8 @@ define([ var that = this; var toinsert = this.create_output_area(); var subarea = $('
').addClass('output_subarea output_unrecognized'); + // Unforce RTL + subarea.attr("dir","auto"); toinsert.append(subarea); subarea.append( $("") @@ -947,6 +953,7 @@ define([ }) ) ) + .attr("dir","auto") ); this.element.append(area);