Merge "Use CM API for setting document direction"

This commit is contained in:
jenkins-bot 2018-04-25 18:36:32 +00:00 committed by Gerrit Code Review
commit d3c7f3cdd4

View file

@ -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 );
};
/**