mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1151 from silverstripe-rebelalliance/bug/image_reedit_attr
FIX Assiging width to caption instead of container
This commit is contained in:
commit
6a1fe05191
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user