Hello,
I think it is rather better to use an external editor than to enhance the CB2 Edit Dialog. Here I find an userChrome.js script, which can enable the CB2 to use an external editor. Share it with you.
http://space.geocities.jp/alice0775/STO ... hook.uc.js
http://space.geocities.jp/alice0775/STO ... edit.uc.js
You need to adjust the path of your external editor in the second file.
When CB2 Edit Dialog is opened, a middle click in the code box will create a tmp file and open the external editor. When focusing back to CB2 Edit Dialog, your code box will be synchronized and the tmp file be removed.


