mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +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 |
||
---|---|---|
.. | ||
jest | ||
phpunit | ||
selenium |