Hi all:
I have discovered that the code that creates the problem is in jsparty/tiny_mce_improvements.js, concretely in onmouseup function.
The content in this function is inserted in the HTML. I can´t find when is inserted.
If I delete the function, it works better (no XML error in Firefox), but i have discovered that TinyMCE adds this chunk code to the image:
resizeTo="function(width, height) { var newWidth = parseInt(height); var newHeight = parseInt(height) - this.heightDiff; if(isNaN(newWidth)) newWidth = this.width; if(isNaN(newHeight)) newHeight = this.height; // Constrain to width of the window if((this.offsetLeft + this.offsetWidth + 20) > this.ownerDoc().offsetWidth) newWidth += (this.ownerDoc().offsetWidth - this.offsetLeft - this.offsetWidth - 20); if(this.aspectRatio) { // Figure out which dimension we have altered more var heightChange = this.originalHeight / this.height; if(heightChange < 1) heightChange = 1/heightChange; var widthChange = this.originalWidth / this.width; if(widthChange < 1) widthChange = 1/widthChange; // Scale by the more constant dimension (so if you edit the height, change width to suit) if(widthChange > heightChange) newHeight = newWidth * this.aspectRatio; else newWidth = newHeight / this.aspectRatio; } this.style.width = newWidth + 'px'; this.style.height = newHeight + 'px'; this.width = newWidth; this.height = newHeight; // Auto-size special image holders if(this.parentNode.parentNode.className.match(/(^|\b)specialImage($|\b)/)) { this.parentNode.parentNode.style.width = newWidth + 'px'; } }" ownerDoc="function() { var f =this.parentNode; while(f && f.tagName.toLowerCase() != 'body') f = f.parentNode; return f; }" prepareForResize="function() { if(this.aspectRatio == null) { this.aspectRatio = this.height / this.width; } this.originalWidth = this.width; this.originalHeight = this.height; }" _onclick="function() { var form = $('Form_EditorToolbarImageForm'); if(form) { form.elements.AltText.value = this.alt; form.elements.CSSClass.value = this.className; } }" initialize="function() { TinyMCE.prototype.addEvent(this, 'click', this._onclick); }"
I also have discovered that the image is moved to assets/imagenes/_resampled/ResizedImage545161-img.jpg directory and i don´t understand why because i have used the image without resizing.
Any idea about avoiding to resizing images in SS?