| 51 | | var doc = this.editordoc = this.editor._iframe.contentWindow.document; |
| 52 | | Xinha._addEvents(doc, ["dblclick"], |
| 53 | | function (event) { |
| 54 | | return self.onDoubleClick(Xinha.is_ie ? self.editor._iframe.contentWindow.event : event); |
| 55 | | }); |
| 56 | | this.currentClick = null; |
| 57 | | }; |
| 58 | | |
| 59 | | DoubleClick.prototype.onDoubleClick = function(ev) { |
| 60 | | var target = Xinha.is_ie ? ev.srcElement : ev.target; |
| 61 | | var tagName = target.tagName.toLowerCase(); |
| 62 | | |
| 63 | | if (this.editor.dblClickList[tagName] != undefined) { |
| 64 | | this.editor.dblClickList[tagName][0](this.editor, target); |
| | 51 | var config = this.editor.config; |
| | 52 | for( var i in this.editor.dblClickList ) { |
| | 53 | if( typeof i != 'string' ) { |
| | 54 | continue; |
| | 55 | } |
| | 56 | var actions = this.editor.dblClickList[i]; |
| | 57 | if( typeof actions != 'object' ) { |
| | 58 | continue; |
| | 59 | } |
| | 60 | this.editor.config.dblclickList[i] = actions; |