- self.scriptlets[opts.action](opts.context, opts.extra, input, 0, 0, function(output, move_forward, move_up){
- /*if(timer)
- clearTimeout(timer);
- else */
- if (input != output) {
- self.XMLEditorReplaceSelectedText(opts.context, output)
- }
- if (move_forward || move_up) {
- try {
- self.XMLEditorMoveCursorForward(opts.context, move_forward, move_up)
+ window.setTimeout(function() {
+ self.scriptlets[opts.action](opts.context, opts.extra, input, 0, 0, function(output, move_forward, move_up){
+ /*if(timer)
+ clearTimeout(timer);
+ else */
+ if (input != output) {
+ self.XMLEditorReplaceSelectedText(opts.context, output)