Hi, I'm creating a gadget for improved source editing. Are there any hooks that I can use?
So far, I am aware of the following ways to edit wikitext:
- Traditional
<textarea>
(action=edit)- Hook:
wikipage.editform
- Edit with:
$("#wpTextbox1")
- Hook:
- Syntax highlighting with CodeMirror (action=edit)
- Hook:
ext.CodeMirror.switch
- Edit with:
elementFromHook.CodeMirror
- Hook:
- 2017 wikitext editor (veaction=editsource)
- Hook:
???
- Edit with:
$(".ve-ce-documentNode")
- do you have anything more exact?
- Hook:
Also, is there a good way and place to show warnings that the user will see before saving?