mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 10:19:27 +00:00
Merge "Use CM API for setting document direction"
This commit is contained in:
commit
d3c7f3cdd4
|
@ -152,7 +152,7 @@ ve.ui.CodeMirrorAction.prototype.onLangChange = function () {
|
|||
var surface = this.surface,
|
||||
dir = surface.getView().getDocument().getDir();
|
||||
|
||||
surface.mirror.getWrapperElement().setAttribute( 'dir', dir );
|
||||
surface.mirror.setOption( 'direction', dir );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue