Changeset 27579
- Timestamp:
- 03/18/2014 02:29:45 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js/tinymce
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27578 r27579 336 336 337 337 function addToolbar( node ) { 338 var position, toolbarHtml, toolbar,338 var rectangle, toolbarHtml, toolbar, toolbarSize, 339 339 dom = editor.dom; 340 340 … … 347 347 348 348 dom.setAttrib( node, 'data-wp-imgselect', 1 ); 349 position = dom.getPos( node, editor.getBody());349 rectangle = dom.getRect( node ); 350 350 351 351 toolbarHtml = '<div class="dashicons dashicons-edit edit" data-mce-bogus="1"></div> ' + … … 359 359 360 360 editor.getBody().appendChild( toolbar ); 361 toolbarSize = dom.getSize( toolbar ); 361 362 362 363 dom.setStyles( toolbar, { 363 top: position.y,364 left: position.x364 top: rectangle.y, 365 left: rectangle.x + rectangle.w - toolbarSize.w 365 366 }); 366 367 } -
trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
r27578 r27579 230 230 margin-bottom: 16px; 231 231 cursor: pointer; 232 border: 1px solid transparent; 232 233 } 233 234 … … 240 241 .wpview-type-gallery.selected { 241 242 background-color: #f2f8ff; 242 outline: 1px solid#777;243 border-color: #777; 243 244 } 244 245 … … 246 247 position: absolute; 247 248 top: 0; 248 left: 0;249 right: 0; 249 250 background-color: #333; 250 251 color: white; … … 274 275 275 276 .gallery { 276 margin: auto ;277 padding: 0.5em0;277 margin: auto -6px; 278 padding: 6px 0; 278 279 line-height: 1; 279 margin-left: -0.5em;280 margin-right: -0.5em;281 280 overflow-x: hidden; 282 281 } … … 286 285 margin: 0; 287 286 text-align: center; 288 padding: 0.5em;287 padding: 6px; 289 288 -webkit-box-sizing: border-box; 290 289 -moz-box-sizing: border-box; … … 339 338 340 339 .gallery img { 341 border: 1px solid #cfcfcf;342 340 max-width: 100%; 343 341 height: auto;
Note: See TracChangeset
for help on using the changeset viewer.