v2nek / webchat2

Automatically exported from code.google.com/p/webchat2
GNU General Public License v2.0
0 stars 0 forks source link

Smiles window does work, prompt "Error executing command" #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
execCommand function in chatEditor class send command 'smile' to
document.body. Instead need to send 'InsertImage'

What is the expected output? What do you see instead?
I change the function like this, to work fine

  execCommand: function(cmd, opt) {
    var option = opt != undefined ? opt : false;
    cmd = (cmd == 'smile') ? 'InsertImage' : cmd;
    try {
      this.doc.execCommand(cmd, false, option);
    } catch(e) {
      alert('Error executing command');
    }
  }

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by bfpde...@gmail.com on 12 Jul 2007 at 8:28

GoogleCodeExporter commented 9 years ago
Well, that keeps it from popping an error box, although it doesn't look like 
'InsertImage' works.

Original comment by blade.e...@gmail.com on 4 Nov 2009 at 9:41