Open
Description
I noticed you're still using text areas to render the queries. You might want to use the YASQE (http://yasqe.yasgui.org) instead.
To get the YASQE query editor, include the css/js, and run something like YASQE.fromTextArea($('textarea'))
(see attachment).
To get a read-only YASQE rendering, add {'readOnly': true} as configuration
If you'd like to integrate this and bump into issues not described in the docs (http://yasqe.yasgui.org/doc), feel free to ping me