This task is about //revising// the event that is fired when someone attempts to switch from the Reply Tool's `source` to `visual` mode after drafting a comment that contains any combination of the following syntax "types":
- Extension
- Table
- Template
== Implementation details
//When someone does the following://
1. Writes a comment in the tool's `source` mode that contains **any combination** of a table, template or extension
2. Attempts to switch to the tool's `visual` mode
3. The following event should fire:
|Event name | Schema
|---|---
|`dialog-prevent-show` |[VisualEditorFeatureUse](https://meta.wikimedia.org/wiki/Schema:VisualEditorFeatureUse)
4. They should see a dialog that says:
|Dialog title| Dialog body|
|---|---
|`Visual mode disabled`|`Sorry, switching to visual mode is disabled because the syntax below was detected in the comment you have written. [Learn more](mw:Extension:DiscussionTools/Reply_tool_visual_mode_limitations). <ul> <li>Extension</li> <li>Table</li> <li>Template</li> </ul>`
=== Open questions
- [ ] @Esanders is it possible to implement the dialog messaging described in "Step 4." above //without// firing logging/firing separate events for each syntax type?
=== Done
- [ ] All "Open questions" are answered
- [ ] The behavior described in the "Implementation details" section is implemented