#1996: [FF]  Insert new line before Select Box, unpredictable behavior.
-----------------------+----------------------------------------------------
 Reporter:  acroporas  |        Type:  Bug               
   Status:  new        |    Priority:  Normal            
Milestone:             |   Component:  Core : Output Data
  Version:             |    Keywords:  select            
-----------------------+----------------------------------------------------
 In firefox, select boxes behave very unpredictably when you try to insert
 a new line/paragraph before them.

 The unusual behavior/broken code is always preceded by the cursor
 disappearing. When the cursor disappears, typing, results in text showing
 up in the select box(this is probably a bug as well), but this is not
 reflected in the code.  Pressing enter on the other hand, breaks the code.

 There are 3 different behaviors that pressing the enter key might have and
 which one will happen is somewhat unpredictable, but here are a few
 examples of how it might go down.

 I've tested this both in 2.6B and nightly build.

 Scenario 1.

 1.  Create a select box.

 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p><select name="adsf">
     <option value="asdf">adsf</option>
     </select></p>
     <p>&nbsp;&nbsp;</p>
 </form>
 <p>&nbsp;</p>

 2.  Place cursor on the line below the select box.
 3.  Press up arrow (the cursor will disappear?)
 4.  Press Enter

 And the code becomes

 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p><select name="adsf">'''</select><select name="adsf">'''
     <option value="asdf">adsf</option>
     </select></p>
     <p>&nbsp;&nbsp;</p>
 </form>
 <p>&nbsp;</p>




 ----
 Scenario 2.

 1.  Create a new select box.

 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p><select name="adsf">
     <option value="asdf">adsf</option>
     </select></p>
     <p>&nbsp;&nbsp;</p>
 </form>
 <p>&nbsp;</p>

 2.  Place the cursor below the select box
 3.  Press the left arrow. (the cursor will now be at the end of the select
 box press enter now, and you get a new paragraph expected)
 4.  Press the left arrow again.  (the cursor will disappear?)
 5.  Press enter.

 The code becomes
 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p>'''<select name="adsf"></select>'''</p>
     <p>&nbsp;&nbsp;</p>
 </form>
 <p>&nbsp;</p>


 Scenario 3.

 1.  Create a new select box.

 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p><select name="adsf">
     <option value="asdf">adsf</option>
     </select></p>
     <p>&nbsp;&nbsp;</p>
 </form>
 <p>&nbsp;</p>

 2.  Place the cursor above the select box
 3.  Press the right arrow. (the cursor will disappear?)
 4.  Press enter.

 The code becomes
 '''<p>&nbsp;</p>'''
 <p>&nbsp;This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <form method="get" action="asd" name="asdf">
     <p>&nbsp;&nbsp;</p>
     <p><select name="adsf">
     </select></p>
     <p>&nbsp;</p>
 </form>
 <p>&nbsp;</p>

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1996>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to