Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-822

Adding a picture from the editor under IE8 failed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.9.20
    • 2.9.19
    • Inline Editor
    • None
    • IE8 in compatibility mode

      How to
      Edit a page
      Add some text with the inline editor
      Add a picture from the hard drive (I put in copy the picture I used)
      Save

      Actual Behavior
      The picture is not displayed, a white square with a red cross is displayed instead of it.

      Expected Behavior
      The picture is displayed (size and location should be fine)

      Note
      I did the security modification as explained in the user manual for IE7 (see in attachment)
      A picture inserted in the structured content (from the hard drive) is displaying well.
      If I open it again I've got the white square with red cross.

        1. cms.png
          cms.png
          67 kB
        2. editor.png
          editor.png
          67 kB
        3. security.png
          security.png
          47 kB
        4. upmcatlantis.jpg
          upmcatlantis.jpg
          6 kB

          [CMS-822] Adding a picture from the editor under IE8 failed

          Works fine in IE8 compatibility mode
          But there is a problem with IE8 normal mode: pop-up message saying the the user has not click in the HTML Editor

          Frederic Ravetier (Inactive) added a comment - Works fine in IE8 compatibility mode But there is a problem with IE8 normal mode: pop-up message saying the the user has not click in the HTML Editor

          ### Eclipse Workspace Patch 1.0
          #P AnyContent V2.9.X
          Index: workspaces/cms/resources/HTMLeditor/js/htmlarea.js
          ===================================================================
          RCS file: /cvs/produits/Ametys/AnyContent_2.9/workspaces/cms/resources/HTMLeditor/js/htmlarea.js,v
          retrieving revision 1.14
          diff -u -r1.14 htmlarea.js
          --- workspaces/cms/resources/HTMLeditor/js/htmlarea.js	11 Aug 2009 13:51:32 -0000	1.14
          +++ workspaces/cms/resources/HTMLeditor/js/htmlarea.js	20 Aug 2009 08:17:31 -0000
          @@ -2407,7 +2407,7 @@
           			for (i = 0; i < attrs.length; ++i) 
           			{
           				// bcp des attributs d'IE sont inutiles. permet de gagner un temps fous � la sauvegarde des gros documents.
          -				if (HTMLArea.is_ie && i < 79 && i!=3 && i!=18 && i!=43 && i!=50 && i!=59)
          +				if (HTMLArea.is_ie && !HTMLArea.is_ie7emul && i < 79 && i!=3 && i!=18 && i!=43 && i!=50 && i!=59)
           					continue;
           					
           				var a = attrs.item(i);
          
          

          Raphaël Franchet added a comment - ### Eclipse Workspace Patch 1.0 #P AnyContent V2.9.X Index: workspaces/cms/resources/HTMLeditor/js/htmlarea.js =================================================================== RCS file: /cvs/produits/Ametys/AnyContent_2.9/workspaces/cms/resources/HTMLeditor/js/htmlarea.js,v retrieving revision 1.14 diff -u -r1.14 htmlarea.js --- workspaces/cms/resources/HTMLeditor/js/htmlarea.js 11 Aug 2009 13:51:32 -0000 1.14 +++ workspaces/cms/resources/HTMLeditor/js/htmlarea.js 20 Aug 2009 08:17:31 -0000 @@ -2407,7 +2407,7 @@ for (i = 0; i < attrs.length; ++i) { // bcp des attributs d'IE sont inutiles. permet de gagner un temps fous � la sauvegarde des gros documents. - if (HTMLArea.is_ie && i < 79 && i!=3 && i!=18 && i!=43 && i!=50 && i!=59) + if (HTMLArea.is_ie && !HTMLArea.is_ie7emul && i < 79 && i!=3 && i!=18 && i!=43 && i!=50 && i!=59) continue ; var a = attrs.item(i);

          fichier image de test

          Frederic Ravetier (Inactive) added a comment - fichier image de test

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: