Comments in wikitext are often used to hide content, that is not yet ready. Common examples include
<!-- == References == <references /> -->
for an article that doesn't have references yet, or content in another language that has to be translated yet, etc.
In source code you just add or remove the comment tags, but while VE does allow to work with comments, it is not possible to work with comments this way.
To make this possible in VE, the following should be implemented:
- When you have something selected and then insert a comment, the selection should be converted to wikitext (HTML for core VE) and used as content of the comment. Currently it is just removed, the comment starts with empty content.
- The flyout for comments should have a button "Uncomment" (or something similar), that will parse the content of the comment as wikitext and replace the comment with the result.