My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 6: Smiles window does work, prompt "Error executing command"
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by bfpdevel, Jul 12, 2007
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.


Comment 1 by blade.eric, Nov 04, 2009
Well, that keeps it from popping an error box, although it doesn't look like 
'InsertImage' works.
Sign in to add a comment

Hosted by Google Code