Page MenuHomePhabricator

VisualEditor: The default direction of the <textarea> for editing the content of <source> must be LTR
Closed, ResolvedPublic

Description

Currently, if I go to https://www.mediawiki.org/wiki/User:Amire80/ve-source and
edit it using VE, I can edit the content of the <source> tag. If my UI language
is Hebrew, then the <textarea> for editing the poem is RTL. I would expect it
to be always LTR by default, because source code is almost always LTR. (There are some RTL programming languages like Hebrew Logo and Arabic Alb, but these are very rare exceptions and the <source> tag doesn't support them anyway.)

This is comparable to Bug 56779, but unlike in that bug, here the request is that the direction will be explicitly set to ltr rather than the surrounding direction.

There may be other tags for which something like this would be useful, but I can't think of any at the moment.


Version: unspecified
Severity: normal

Details

Reference
bz56780

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:20 AM
bzimport set Reference to bz56780.

Another nice thing to do would be to use CodeEditor instead of <textarea>.

Change 94424 had a related patch set uploaded by Mooeypoo:
Force LTR direction in MWSyntaxHighlightDialog

https://gerrit.wikimedia.org/r/94424

Change 94424 merged by jenkins-bot:
Force LTR direction in MWSyntaxHighlightDialog

https://gerrit.wikimedia.org/r/94424