Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:IE
Description
Sample code:
<ice:inputRichText height="300px" width="600px"
skin="silver" toolbar="Default"
saveOnSubmit="true"
value="contentField" rendered="true" >
</ice:inputRichText>
-
Hide
- Case8512Example2.war
- 6.14 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/.../example/TestBean.class 1 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/lib/FastInfoset.jar 285 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-discovery.jar 75 kB
- WEB-INF/lib/commons-el.jar 110 kB
- WEB-INF/lib/commons-fileupload.jar 56 kB
- WEB-INF/lib/commons-lang.jar 240 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-comps.jar 1.93 MB
- WEB-INF/lib/icefaces.jar 1.06 MB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 778 kB
- WEB-INF/lib/jstl.jar 20 kB
- WEB-INF/web.xml 3 kB
- index.jsp 0.1 kB
- js/config.js 1 kB
- main.jspx 4 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
I've attached a test case where I can replicate this issue. Steps to reproduce:
- Type in some text in the text field.
- Highlight the text.
- Change the style for the text, for example: "Deleted Text".
- Go back and try and remove the "Deleted Text" style, in IE it doesn't get removed.
Also one thing to note is that I can't replicate this in the Component Showcase.
Is this specific to any version of IE?
I've only tested with IE7.
Arran can you please apply above steps to the following link unde IE 7:
http://www.fckeditor.net/demo
Did you see the same behaviour?
I don't see the same behavior on the FCKEditor demo. I have noticed that when its working the added style is highlighted the same as the text (in white). When the added style can't be removed it is in black when the text is in white. This is when everything is highlighted/selected.
After testing FCK API painstakingly, It came across that its due to a call of editor.GetXHTML function. After google I found that this bug was introduced to the FCKEditor since FCKeditor 2.6.3 and seems like its fixed a month ago and targeted to FCKeditor 2.6.5.
The FCKEditor release is used by ICEFaces is 2.6.4
http://dev.fckeditor.net/ticket/325
http://dev.fckeditor.net/ticket/2834
http://dev.fckeditor.net/ticket/2156
Following FCK patch applied:
http://dev.fckeditor.net/changeset/3882
The following 3 files were involved in the patch. Further patch details can be found in above link.
editor/_source/internals/fckdomtools.js
editor/_source/internals/fckxhtml_ie.js
editor/_source/internals/fckxhtml.js
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor.zip
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor.zip
Completed: At revision: 19205
Test result on ICEfaces trunk revision 19228
- In IE6 and 7 the applied style ("Deleted Text", for example) doesn't get removed
- Works fine in FF3.5
Test app committed to repo\qa\trunk\Regression\ICE-4758
I am not able to reproduce it, can you please post some steps and screen shots?