mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Disable automatic insertion of images (merged from branches/2.2.0@45907, r45462)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46119 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
66cf27f914
commit
9037878a5b
@ -193,12 +193,14 @@ TinyMCEImageEnhancement.prototype = {
|
|||||||
}
|
}
|
||||||
//END OF HACK
|
//END OF HACK
|
||||||
$('Image').reapplyBehaviour();
|
$('Image').reapplyBehaviour();
|
||||||
this.addToTinyMCE = this.addToTinyMCE.bind(this);
|
this.addToTinyMCE = this.addToTinyMCE.bind(this);
|
||||||
|
/* Don't insert images for now - this inserts the wrong image as images are now sorted by filename rather than date uploaded.
|
||||||
var childNodes = $('Image').childNodes[0].childNodes;
|
var childNodes = $('Image').childNodes[0].childNodes;
|
||||||
var newImages = $A(childNodes).slice(childNodes.length - this.filesUploaded);
|
var newImages = $A(childNodes).slice(childNodes.length - this.filesUploaded);
|
||||||
newImages.each(function(item) {
|
newImages.each(function(item) {
|
||||||
tinyMCEImageEnhancement.addToTinyMCE(item.childNodes[0]);
|
tinyMCEImageEnhancement.addToTinyMCE(item.childNodes[0]);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
this.processInProgress = false;
|
this.processInProgress = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user