From 9037878a5b8167ac3a74c120b4bb6afbc97d8ac7 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 2 Dec 2007 21:38:15 +0000 Subject: [PATCH] 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 --- javascript/TinyMCEImageEnhancement.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/javascript/TinyMCEImageEnhancement.js b/javascript/TinyMCEImageEnhancement.js index 5f1cdd3e..45d4d289 100644 --- a/javascript/TinyMCEImageEnhancement.js +++ b/javascript/TinyMCEImageEnhancement.js @@ -193,12 +193,14 @@ TinyMCEImageEnhancement.prototype = { } //END OF HACK $('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 newImages = $A(childNodes).slice(childNodes.length - this.filesUploaded); newImages.each(function(item) { tinyMCEImageEnhancement.addToTinyMCE(item.childNodes[0]); - }); + }); + */ this.processInProgress = false; },