mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: SSF-38 hiding the insert image controls when editing an already inserted image.
This commit is contained in:
parent
697ffb82a7
commit
64d0cbab9a
@ -654,7 +654,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
||||
.toggleClass('ui-state-disabled', !hasItems);
|
||||
|
||||
// Hide file selection and step labels when editing an existing file
|
||||
this.find('.header-select,.content-select,.header-edit')[editingSelected ? 'hide' : 'show']();
|
||||
this.find('#MediaFormInsertImageTabs,.header-edit')[editingSelected ? 'hide' : 'show']();
|
||||
},
|
||||
getFileView: function(idOrUrl) {
|
||||
return this.find('.ss-htmleditorfield-file[data-id=' + idOrUrl + ']');
|
||||
|
Loading…
Reference in New Issue
Block a user