Index: typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php =================================================================== --- typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php (révision 7838) +++ typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php (copie de travail) @@ -500,18 +500,14 @@ } selectedImageRef.removeAttribute("border"); } - if (document.imageData.iFloat) { var iFloat = document.imageData.iFloat.options[document.imageData.iFloat.selectedIndex].value; - if (iFloat || selectedImageRef.style.cssFloat || selectedImageRef.style.styleFloat) { - if (document.all) { - selectedImageRef.style.styleFloat = (iFloat != "none") ? iFloat : ""; - } else { - selectedImageRef.style.cssFloat = (iFloat != "none") ? iFloat : ""; - } + if (document.all) { + selectedImageRef.style.styleFloat = iFloat ? iFloat : ""; + } else { + selectedImageRef.style.cssFloat = iFloat ? iFloat : ""; } } - if (classesImage && document.imageData.iClass) { var iClass = document.imageData.iClass.options[document.imageData.iClass.selectedIndex].value; if (iClass || (selectedImageRef.attributes["class"] && selectedImageRef.attributes["class"].value)) { Index: typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php =================================================================== --- typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (révision 7838) +++ typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (copie de travail) @@ -602,12 +602,10 @@ } if (document.imageData.iFloat) { var iFloat = document.imageData.iFloat.options[document.imageData.iFloat.selectedIndex].value; - if (iFloat || selectedImageRef.style.cssFloat || selectedImageRef.style.styleFloat) { - if (document.all) { - selectedImageRef.style.styleFloat = (iFloat != "none") ? iFloat : ""; - } else { - selectedImageRef.style.cssFloat = (iFloat != "none") ? iFloat : ""; - } + if (document.all) { + selectedImageRef.style.styleFloat = iFloat ? iFloat : ""; + } else { + selectedImageRef.style.cssFloat = iFloat ? iFloat : ""; } } if (classesImage && document.imageData.iClass) {