Merge pull request #1151 from silverstripe-rebelalliance/bug/image_reedit_attr

FIX Assiging width to caption instead of container
This commit is contained in:
Sean Harvey 2013-01-31 13:23:36 -08:00
commit 6a1fe05191

View File

@ -1085,13 +1085,13 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
container = $('<div></div>');
}
container.attr('class', 'captionImage '+attrs['class']);
container.attr('class', 'captionImage '+attrs['class']).css('width', attrs.width);
if (!caption.length) {
caption = $('<p class="caption"></p>').appendTo(container);
}
caption.attr('class', 'caption '+attrs['class']).css('width', attrs.width).text(extraData.CaptionText);
caption.attr('class', 'caption '+attrs['class']).text(extraData.CaptionText);
}
// Otherwise forget they exist
else {