Hi,
We are using RadEditor Version 2009.3.1208. I have an issue with Image Editor Flip and rotate in Firefox. Actaully, its not working in Firefox. And I have gone through the code and found that filter is used for flipping and rotating the images. And I think filter is specific to IE and there is a code to just "return" if the filter is null which makes it not to work in firefox. ITs problem with both flip and rotate, does any one had the same problem? How can I fix this?Any one can help me?
Thanks,
Akila.
We are using RadEditor Version 2009.3.1208. I have an issue with Image Editor Flip and rotate in Firefox. Actaully, its not working in Firefox. And I have gone through the code and found that filter is used for flipping and rotating the images. And I think filter is specific to IE and there is a code to just "return" if the filter is null which makes it not to work in firefox. ITs problem with both flip and rotate, does any one had the same problem? How can I fix this?Any one can help me?
_updateFlipUI: function()
{
var horiz = this._flipHorizontal;
var vertical = this._flipVertical;
var filters = this._image.filters;
//Moz TEMP
if (!filters)
return;
filters.item("flipH").enabled = horiz ? 1 : 0;
filters.item("flipV").enabled = vertical ? 1 : 0;
},
_updateRotationUI: function()
{
var image = this._image;
//If IE
var filters = image.filters;
if (filters)
{
var filter = filters.item("DXImageTransform.Microsoft.Matrix");
if (filter)
{
//deg input defines the requested angle of rotation.
var deg = this._rotationAngle;
var deg2radians = Math.PI * 2 / 360;
var rad = deg * deg2radians;
var costheta = Math.cos(rad);
var sintheta = Math.sin(rad);
filter.M11 = costheta;
filter.M12 = -sintheta;
filter.M21 = sintheta;
filter.M22 = costheta;
}
}
}
//Will be different in different browsers
_customInitialize: function()
{
//Set all filters to the image (TODO: the matrix filter in the future too)
this._image.style.filter = "flipH flipV progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=100) progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingmethod='auto expand')";
},
Thanks,
Akila.