Changes between Initial Version and Version 2 of Ticket #667
- Timestamp:
- Oct 3, 2007, 3:27:01 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #667
- Property Reporter changed from Martin Kou to anonymous
-
Ticket #667 – Description
initial v2 1 BUG in combination of a hyperlink and a predefined style2 3 1 Following situation: 4 2 5 3 Prerequisites 6 - developer runtime (uncompiled scripts) 7 - fckstyles.xml 4 * developer runtime (uncompiled scripts) 5 * fckstyles.xml 6 7 {{{ 8 8 <Style name="Fat link" element="a"> 9 <Attribute name="class" 10 value="aBold" /> 9 <Attribute name="class" value="aBold" /> 11 10 </Style> 11 }}} 12 12 13 a) there is nothing more in the editor then 2 plain words 14 without any formatting 15 b) select one word and create a hyperlink using 16 toolbar "Insert/Edit link" 17 c) enter some target as usual, the hyperlink is created 18 d) now while the text is still selected choose the "Fat 19 link" from the toolbar style pulldown menu 13 1. there is nothing more in the editor then 2 plain words without any formatting 14 2. select one word and create a hyperlink using toolbar "Insert/Edit link" 15 3. enter some target as usual, the hyperlink is created 16 4. now while the text is still selected choose the "Fat link" from the toolbar style pulldown menu 20 17 21 IE behavior 18 '''IE behavior''' 22 19 23 20 crashes with 24 21 22 {{{ 25 23 Unknown runtime error 26 24 Line 28 in fckstyledef_ie.js > e.innerHTML = 27 25 oRange.htmlText ; 28 26 May be it is a IE bug... 27 }}} 29 28 30 FF behaviour 29 '''FF behaviour''' 31 30 32 31 Firefox has 2 conditions 33 32 34 1 - if the text is still selected it messes up the code 33 1. if the text is still selected it messes up the code 34 35 {{{ 35 36 New document -> New <a class="aBold"><a 36 37 href="bala.ccc/">document</a></a><a 37 38 href="bala.ccc/" /> 39 }}} 38 40 39 2 - if the word has been re-selected it is ok (problem 40 with selection cache?) 41 2. if the word has been re-selected it is ok (problem with selection cache?) 41 42 42 In both browsers if the style choise is done first, there 43 are no problems. 43 In both browsers if the style choise is done first, there are no problems. 44 44 45 This problem is not as big in new documents as in old 46 stuff where hyperlinks exist and have to be "re-styled" 47 od modified. 45 This problem is not as big in new documents as in old stuff where hyperlinks exist and have to be "re-styled" or modified. 48 46 49 47 Best regards