diff --git src/wp-includes/js/tinymce/plugins/wpview/plugin.js src/wp-includes/js/tinymce/plugins/wpview/plugin.js
index 75f7047..337b3d2 100644
|
|
|
tinymce.PluginManager.add( 'wpview', function( editor ) { |
| 265 | 265 | }); |
| 266 | 266 | |
| 267 | 267 | editor.dom.bind( editor.getBody(), 'mousedown mouseup click', function( event ) { |
| 268 | | var view = getParentView( event.target ); |
| | 268 | var view = getParentView( event.target ), |
| | 269 | deselectEventType; |
| 269 | 270 | |
| 270 | 271 | // Contain clicks inside the view wrapper |
| 271 | 272 | if ( view ) { |
| 272 | 273 | event.stopPropagation(); |
| 273 | 274 | |
| | 275 | // Hack to try and keep the block resize handles from appearing. They will show on mousedown and then be removed on mouseup. |
| | 276 | if ( tinymce.Env.ie <= 10 ) { |
| | 277 | deselect(); |
| | 278 | } |
| | 279 | |
| | 280 | select( view ); |
| | 281 | |
| 274 | 282 | if ( event.type === 'click' && ! event.metaKey && ! event.ctrlKey ) { |
| 275 | 283 | if ( editor.dom.hasClass( event.target, 'edit' ) ) { |
| 276 | 284 | wp.mce.views.edit( view ); |
| … |
… |
tinymce.PluginManager.add( 'wpview', function( editor ) { |
| 278 | 286 | editor.dom.remove( view ); |
| 279 | 287 | } |
| 280 | 288 | } |
| 281 | | select( view ); |
| 282 | 289 | // Returning false stops the ugly bars from appearing in IE11 and stops the view being selected as a range in FF. |
| 283 | 290 | // Unfortunately, it also inhibits the dragging of views to a new location. |
| 284 | 291 | return false; |
| 285 | 292 | } else { |
| 286 | | if ( event.type === 'mousedown' ) { |
| | 293 | |
| | 294 | // Fix issue with deselecting a view in IE8. Without this hack, clicking content above the view wouldn't actually deselect it |
| | 295 | // and the caret wouldn't be placed at the mouse location |
| | 296 | if( tinymce.Env.ie <= 8 ) { |
| | 297 | deselectEventType = 'mouseup'; |
| | 298 | } else { |
| | 299 | deselectEventType = 'mousedown'; |
| | 300 | } |
| | 301 | |
| | 302 | if ( event.type === deselectEventType ) { |
| 287 | 303 | deselect(); |
| 288 | 304 | } |
| 289 | 305 | } |
diff --git src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png
new file mode 100755
index 0000000..eea51cb
Binary files /dev/null and src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png differ
diff --git src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png
new file mode 100755
index 0000000..90c8ef7
Binary files /dev/null and src/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png differ
diff --git src/wp-includes/js/tinymce/skins/wordpress/wp-content.css src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
index fe84a39..ee54c33 100644
|
|
|
audio { |
| 204 | 204 | width: 100%; |
| 205 | 205 | } |
| 206 | 206 | |
| | 207 | .ie8 .wpview-wrap .wpview-clipboard, |
| | 208 | .ie7 .wpview-wrap .wpview-clipboard { |
| | 209 | filter: alpha(opacity=0); |
| | 210 | } |
| | 211 | |
| 207 | 212 | /** |
| 208 | 213 | * Media previews |
| 209 | 214 | */ |
| … |
… |
audio { |
| 214 | 219 | } |
| 215 | 220 | |
| 216 | 221 | .wpview-wrap.selected { |
| 217 | | background-color: #f2f8ff; /* fallback to old blue */ |
| | 222 | background-color: #e5e5e5; |
| 218 | 223 | background-color: rgba(0,0,0,0.1); |
| 219 | 224 | border-color: #777; |
| 220 | 225 | border-color: rgba(0,0,0,0.3); |
| 221 | 226 | } |
| 222 | 227 | |
| | 228 | .ie8 .wpview-wrap.selected, |
| | 229 | .ie7 .wpview-wrap.selected { |
| | 230 | background-color: #e5e5e5; |
| | 231 | border-color: #777; |
| | 232 | } |
| | 233 | |
| 223 | 234 | .wpview-overlay { |
| 224 | 235 | position: absolute; |
| 225 | 236 | top: 0; |
| … |
… |
audio { |
| 263 | 274 | font-size: 30px; |
| 264 | 275 | } |
| 265 | 276 | |
| | 277 | .ie8 .wpview-wrap .toolbar div, |
| | 278 | .ie7 .wpview-wrap .toolbar div, |
| | 279 | .ie8 #wp-image-toolbar div, |
| | 280 | .ie7 #wp-image-toolbar div { |
| | 281 | display: inline; |
| | 282 | padding: 0; |
| | 283 | } |
| | 284 | |
| | 285 | .ie8 .dashicons-edit, |
| | 286 | .ie7 .dashicons-edit { |
| | 287 | background-image: url(images/dashicon-edit.png); |
| | 288 | } |
| | 289 | |
| | 290 | .ie8 .dashicons-no-alt, |
| | 291 | .ie7 .dashicons-no-alt { |
| | 292 | background-image: url(images/dashicon-no-alt.png); |
| | 293 | } |
| | 294 | |
| | 295 | |
| 266 | 296 | .wpview-wrap .toolbar div:hover, |
| 267 | 297 | #wp-image-toolbar div:hover { |
| 268 | 298 | box-shadow: 0 1px 3px rgba(0,0,0,0.8); |
| … |
… |
audio { |
| 352 | 382 | box-sizing: border-box; |
| 353 | 383 | } |
| 354 | 384 | |
| | 385 | .ie7 .gallery .gallery-item, |
| | 386 | .ie8 .gallery .gallery-item { |
| | 387 | padding: 6px 0; |
| | 388 | } |
| | 389 | |
| 355 | 390 | .gallery .gallery-caption, |
| 356 | 391 | .gallery .gallery-icon { |
| 357 | 392 | margin: 0; |
| … |
… |
audio { |
| 374 | 409 | width: 33.333%; |
| 375 | 410 | } |
| 376 | 411 | |
| | 412 | .ie8 .gallery-columns-3 .gallery-item, |
| | 413 | .ie7 .gallery-columns-3 .gallery-item { |
| | 414 | width: 33%; |
| | 415 | } |
| | 416 | |
| 377 | 417 | .gallery-columns-4 .gallery-item { |
| 378 | 418 | width: 25%; |
| 379 | 419 | } |