Changeset 5378
- Timestamp:
- 04/14/10 18:23:12 (3 years ago)
- Location:
- CKEditor/branches/versions/3.3.x
- Files:
-
- 7 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/flash/plugin.js (modified) (1 diff)
-
_source/plugins/forms/plugin.js (modified) (1 diff)
-
_source/plugins/image/plugin.js (modified) (1 diff)
-
_source/plugins/link/plugin.js (modified) (1 diff)
-
_source/plugins/table/plugin.js (modified) (1 diff)
-
_source/plugins/wysiwygarea/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/versions/3.3.x/CHANGES.html
r5307 r5378 41 41 <ul> 42 42 <li><a href="http://dev.fckeditor.net/ticket/4968">#4968</a> : Config entry 'contentsLangDirection' now has a default value 'ui' which inherit language direction from editor's (UI) language.</li> 43 <li><a href="http://dev.fckeditor.net/ticket/635">#635</a> : Open properties dialog when double clicking on objects.</li> 43 44 </ul> 44 45 <p> -
CKEditor/branches/versions/3.3.x/_source/plugins/flash/plugin.js
r5306 r5378 77 77 }); 78 78 } 79 79 80 editor.on( 'doubleclick', function( evt ) 81 { 82 var element = evt.data.element;; 83 84 if ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'flash' ) 85 evt.data.dialog = 'flash'; 86 }); 87 80 88 // If the "contextmenu" plugin is loaded, register the listeners. 81 89 if ( editor.contextMenu ) -
CKEditor/branches/versions/3.3.x/_source/plugins/forms/plugin.js
r5306 r5378 173 173 }); 174 174 } 175 176 editor.on( 'doubleclick', function( evt ) 177 { 178 var element = evt.data.element; 179 180 if ( element.is( 'form' ) ) 181 evt.data.dialog = 'form'; 182 else if ( element.is( 'select' ) ) 183 evt.data.dialog = 'select'; 184 else if ( element.is( 'textarea' ) ) 185 evt.data.dialog = 'textarea'; 186 else if ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'hiddenfield' ) 187 evt.data.dialog = 'hiddenfield'; 188 else if ( element.is( 'input' ) ) 189 { 190 var type = element.getAttribute( 'type' ); 191 192 switch ( type ) 193 { 194 case 'text' : case 'password': 195 evt.data.dialog = 'textfield'; 196 break; 197 case 'button' : case 'submit' : case 'reset' : 198 evt.data.dialog = 'button'; 199 break; 200 case 'checkbox' : 201 evt.data.dialog = 'checkbox'; 202 break; 203 case 'radio' : 204 evt.data.dialog = 'radio'; 205 break; 206 case 'image' : 207 evt.data.dialog = 'imagebutton'; 208 break; 209 } 210 } 211 }); 175 212 }, 176 213 -
CKEditor/branches/versions/3.3.x/_source/plugins/image/plugin.js
r5306 r5378 26 26 command : pluginName 27 27 }); 28 28 29 editor.on( 'doubleclick', function( evt ) 30 { 31 var element = evt.data.element; 32 33 if ( element.is( 'img' ) && !element.getAttribute( '_cke_realelement' ) ) 34 evt.data.dialog = 'image'; 35 }); 36 29 37 // If the "menu" plugin is loaded, register the menu items. 30 38 if ( editor.addMenuItems ) -
CKEditor/branches/versions/3.3.x/_source/plugins/link/plugin.js
r5306 r5378 65 65 command.setState( CKEDITOR.TRISTATE_DISABLED ); 66 66 } ); 67 67 68 editor.on( 'doubleclick', function( evt ) 69 { 70 var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element; 71 72 if ( element.is( 'a' ) ) 73 evt.data.dialog = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) ) ? 'anchor' : 'link'; 74 else if ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'anchor' ) 75 evt.data.dialog = 'anchor'; 76 }); 77 68 78 // If the "menu" plugin is loaded, register the menu items. 69 79 if ( editor.addMenuItems ) -
CKEditor/branches/versions/3.3.x/_source/plugins/table/plugin.js
r5306 r5378 45 45 } ); 46 46 } 47 47 48 editor.on( 'doubleclick', function( evt ) 49 { 50 var element = evt.data.element; 51 52 if ( element.is( 'table' ) ) 53 evt.data.dialog = 'table'; 54 }); 55 48 56 // If the "contextmenu" plugin is loaded, register the listeners. 49 57 if ( editor.contextMenu ) -
CKEditor/branches/versions/3.3.x/_source/plugins/wysiwygarea/plugin.js
r5306 r5378 385 385 domDocument = editor.document = new CKEDITOR.dom.document( domDocument ); 386 386 387 domDocument.on( 'dblclick', function( evt ) 388 { 389 var element = evt.data.getTarget(), 390 data = { element : element, dialog : '' }; 391 editor.fire( 'doubleclick', data ); 392 data.dialog && editor.openDialog( data.dialog ); 393 }); 394 387 395 // Gecko/Webkit need some help when selecting control type elements. (#3448) 388 396 if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera) )
Note: See TracChangeset
for help on using the changeset viewer.
