mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
911b2d3d46
Before we were adding these attributes to .cm-content, which didn't encompass the gutter (line numbers). When you edited a LTR page in a RTL interface language (or vice versa), the line gutter appeared on the wrong side, which caused the cursor to be misaligned. This commit fixes this by applying the direction and language to the entire editor (.cm-editor), and not just .cm-content. However this means the search panel could be in the page language when it should be the interface language. This will be addressed in a follow-up patch. Other attributes like 'class' that are copied from the textarea must remain on .cm-content, because the parent .cm-scroller would otherwise override them. Bug: T359589 Change-Id: Id805944231fd75c1dc1c336e3cd4c7bc5c42c036 |
||
---|---|---|
.. | ||
.eslintrc.json | ||
codemirror.bidiIsolation.js | ||
codemirror.js | ||
codemirror.mode.mediawiki.config.js | ||
codemirror.mode.mediawiki.js | ||
codemirror.templateFolding.js | ||
codemirror.textSelection.js | ||
codemirror.wikieditor.js | ||
codemirror.wikieditor.mediawiki.js |