mediawiki-extensions-CodeMi.../resources/modules/ve-cm
MusikAnimal 293a15725d ext.CodeMirror.visualEditor: check language dir of html for new pages
New pages do not have body content yet, so the LTR check added with
If3825d6e54 failed. This commit adds the document root (<html> element)
as the fallback, so CodeMirror can be used on new pages.

This is just a quick fix. CM6 for VE 2017 wikitext editor is almost
done, and that will come with RTL support (T357482).

Bug: T366201
Bug: T363752
Follow-Up: If3825d6e5467d2bcff2d83e838081bf041243920
Change-Id: I9d4a4b817ac2462396c159ceae6f1510c0fae64d
2024-05-30 23:48:05 -04:00
..
.eslintrc.json build: Update linters 2023-09-13 14:02:43 +01:00
ve.ui.CodeMirror.less docs: Remove reference to WikimediaUI Base 2023-10-25 20:06:42 -07:00
ve.ui.CodeMirrorAction.js ext.CodeMirror.visualEditor: check language dir of html for new pages 2024-05-30 23:48:05 -04:00
ve.ui.CodeMirrorTool.js ext.CodeMirror.visualEditor: check language dir of html for new pages 2024-05-30 23:48:05 -04:00