| 17 | | name : "DoubleClick", |
| 18 | | version : "1.0", |
| 19 | | developer : "Marijn Kampf", |
| 20 | | developer_url : "http://www.marijn.org", |
| 21 | | c_owner : "Marijn Kampf", |
| 22 | | sponsor : "smiling-faces.com", |
| 23 | | sponsor_url : "http://www.smiling-faces.com", |
| 24 | | license : "htmlArea" |
| | 17 | name : "DoubleClick", |
| | 18 | version : "1.0", |
| | 19 | developer : "Marijn Kampf", |
| | 20 | developer_url : "http://www.marijn.org", |
| | 21 | c_owner : "Marijn Kampf", |
| | 22 | sponsor : "smiling-faces.com", |
| | 23 | sponsor_url : "http://www.smiling-faces.com", |
| | 24 | license : "htmlArea" |
| 30 | | // ADDING CUSTOM DOUBLE CLICK ACTIONS |
| 31 | | // format of the dblClickList elements is "TAGNAME: [ ACTION ]" |
| 32 | | // - TAGNAME: tagname of the tag that is double clicked |
| 33 | | // - ACTION: function that gets called when the button is clicked. |
| 34 | | // it has the following prototype: |
| 35 | | // function(editor, event) |
| 36 | | // - editor is the HTMLArea object that triggered the call |
| 37 | | // - target is the selected object |
| 38 | | this.editor.dblClickList = { |
| 39 | | // Edit Link dialog |
| 40 | | a: [ function(e) {e.config.btnList['createlink'][3](e); } ], |
| 41 | | // Follow link |
| 42 | | //a: [ function(editor, target) { window.location = target.href; properties(target); } ], |
| | 30 | // ADDING CUSTOM DOUBLE CLICK ACTIONS |
| | 31 | // format of the dblClickList elements is "TAGNAME: [ ACTION ]" |
| | 32 | // - TAGNAME: tagname of the tag that is double clicked |
| | 33 | // - ACTION: function that gets called when the button is clicked. |
| | 34 | // it has the following prototype: |
| | 35 | // function(editor, event) |
| | 36 | // - editor is the Xinha object that triggered the call |
| | 37 | // - target is the selected object |
| | 38 | this.editor.dblClickList = { |
| | 39 | // Edit Link dialog |
| | 40 | a: [ function(e) {e.config.btnList['createlink'][3](e); } ], |
| | 41 | // Follow link |
| | 42 | //a: [ function(editor, target) { window.location = target.href; properties(target); } ], |
| 50 | | var self = this; |
| 51 | | var doc = this.editordoc = this.editor._iframe.contentWindow.document; |
| 52 | | HTMLArea._addEvents(doc, ["dblclick"], |
| 53 | | function (event) { |
| 54 | | return self.onDoubleClick(HTMLArea.is_ie ? self.editor._iframe.contentWindow.event : event); |
| 55 | | }); |
| 56 | | this.currentClick = null; |
| | 50 | var self = this; |
| | 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; |