//Which input mode – `source` or `visual` – should people be presented with when they click "Reply" links?//
~~This task is about running a test on our four partner wikis to help answer this question.~~ We are foregoing the variant test for now. Instead, the Reply tool will inherit wikis' existing article editing configurations. You can review our rationale for making this decision in this comment: T250523#6114984.
---
=== Context
Version 2.0 of the Replying tool will introduce a `visual` mode to the text input area.
This creates a question: //Which input mode – `source` or `visual` – should people be presented with when they click "Reply" links?//
We are approaching this question with the following **principle** in mind: **changes should be minimally invasive and strive to honor existing community conventions and agreements.**
=== Text input mode configuration
In line with the principle above, the Reply tool should behave in the ways described in this table:
| **Account status** | **Wiki configuration** | **User's editing mode [preference](https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-editing)** | User edit count | **Reply text input default** | **Notes**
| --- | --- | --- | --- | --- | --- |
| Logged in | two edit tabs | no preference set | ≥1 | last article editor used |
| Logged in | two edit tabs | no preference set | 0 | follow behavior defined in `getPreferredEditor` | This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged in | N/A | `visual` | ≥0 | `visual`|
| Logged in | N/A | `source` | ≥0 | `source`|
| Logged in | N/A | `Show me both editor tabs` | 0 | follow behavior defined in `getPreferredEditor`| This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged in | N/A | `visual` | ≥0 | `visual`|
| Logged in | N/A | `Show me both editor tabs` | ≥1 | last article editor used|
| Logged out | two edit tabs |N/A | N/A | follow behavior defined in `getPreferredEditor`| This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged out | default `visual` |N/A | N/A | show `visual`|
| Logged out | default `source` |N/A | N/A | show `source`|
| Logged out| N/A | N/A | Published ≥1 comment with the Reply tool | show the last Reply text input mode used to publish a comment | |
=== Partner wiki article editor default configurations
|**Wiki**| **Logged in**| **Logged out**|
| --- | --- | ---
| Arabic | `visual` | `visual`
| Dutch | `two edit tabs` | `two edit tabs`
| French | `two edit tabs` | `two edit tabs`
| Hungarian | `VE` | `VE`
=== Testing instructions
- If QA has a vagrant virtual machine, //all// configurations described in the "Text input mode configuration" and "Partner wiki article editor default configurations" section can be tested.
- If QA does NOT have a vagrant virtual machine, ONLY the user-level configurations (read: preferences) described in the "Text input mode configuration" section can be tested; the "Partner wiki article editor default configurations" can be tested as well.
-- //Reasons: https://en.wikipedia.beta.wmflabs.org/'s wiki-level configurations cannot be changed.//
=== Done
- [ ] Behavior described in "Text input mode configuration" has been implemented
---
1. People who always expect to see the `visual` text input are those people who have the following Preference set: `Preferences` > `Editing` > `Editing Mode: "Always give me the visual editor if possible."`
2. People who always expect to see the `source` text input mode are those people who have the following Preference set: `Preferences` > `Editing` > `Editing Mode: "Always give me the source editor if possible"`
3. E.g. logged out users
4. E.g. editors on two-tab wikis