mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Assiging width to caption instead of container
This commit is contained in:
parent
4681673896
commit
aa3eb98de2
@ -1075,13 +1075,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…
x
Reference in New Issue
Block a user