Might just be me, but I tend to have the habit of typing out/pasting code into the editor, selecting it, then clicking the code button. At that point I realise it doesn't copy the code into the textarea for me and have to close the overlay, recopy my text and paste it in...
Changing suggestion to removing code tag overlay in exchange for simple drop down menu similar to font family, alignment, drafts, etc.
- More easily supports the wrapping of tags around text selection
- No need to make a request to the server when clicking the buttons
- Reduce a bit of code? (one less template, probably less JS code required)
- Code is saved by drafts (vs. code overlay is open and browser crashes, the code would not be saved?)