Changeset 21576
- Timestamp:
- 08/22/2012 01:47:53 AM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-editor.php
r21417 r21576 318 318 'paste_strip_class_attributes' => 'all', 319 319 'paste_text_use_dialog' => true, 320 'webkit_fake_resize' => false, 320 321 'spellchecker_rpc_url' => self::$baseurl . '/plugins/spellchecker/rpc.php', 321 322 'extended_valid_elements' => 'article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr', -
trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
r21254 r21576 15 15 16 16 ed.onInit.add(function(ed) { 17 ed.dom.events.add(ed.getBody(), ' dragstart', function(e) {17 ed.dom.events.add(ed.getBody(), 'mousedown', function(e) { 18 18 var parent; 19 19 20 20 if ( e.target.nodeName == 'IMG' && ( parent = ed.dom.getParent(e.target, 'div.mceTemp') ) ) { 21 ed.selection.select(parent); 21 if ( tinymce.isGecko ) 22 ed.selection.select(parent); 23 else if ( tinymce.isWebKit ) 24 ed.dom.events.cancel(e); 22 25 } 23 26 }); … … 45 48 }); 46 49 47 // resize the caption <dl> when the image is soft-resized by the user (only possible in Firefox and IE)50 // resize the caption <dl> when the image is soft-resized by the user 48 51 ed.onMouseUp.add(function(ed, e) { 49 52 if ( tinymce.isWebKit || tinymce.isOpera )
Note: See TracChangeset
for help on using the changeset viewer.