Changeset 27764
- Timestamp:
- 03/27/2014 12:06:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27758 r27764 187 187 188 188 function updateImage( imageNode, imageData ) { 189 var className, width, node, html, captionNode, nodeToReplace, uid, editedImg ;189 var className, width, node, html, captionNode, nodeToReplace, uid, editedImg, id; 190 190 191 191 if ( imageData.caption ) { … … 200 200 201 201 className = 'align' + imageData.align; 202 203 //TODO: shouldn't add the id attribute if it isn't an attachment 202 id = imageData.attachment_id ? 'id="attachment_'+ imageData.attachment_id +'" ' : ''; 204 203 205 204 // should create a new function for generating the caption markup 206 html = '<dl id="'+ imageData.attachment_id +'"class="wp-caption '+ className +'" style="width: '+ width +'px">' +205 html = '<dl ' + id + 'class="wp-caption '+ className +'" style="width: '+ width +'px">' + 207 206 '<dt class="wp-caption-dt">'+ html + '</dt><dd class="wp-caption-dd">'+ imageData.caption +'</dd></dl>'; 208 207
Note: See TracChangeset
for help on using the changeset viewer.