#2262: Creating a list from selection in gecko fails if starting from a blank 
page
---------------------------+------------------------------------------------
  Reporter:  mcukstorm     |       Owner:                    
      Type:  Bug           |      Status:  new               
  Priority:  Normal        |   Milestone:                    
 Component:  Core : Lists  |     Version:  FCKeditor 2.6     
Resolution:                |    Keywords:  Pending WorksForMe
---------------------------+------------------------------------------------
Comment (by jonburney):

 I've tried this on the FCK demo too and had the same results.

 The initial code I used in FCK was

 {{{
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 }}}

 I then used CTRL-A to select all and then clicked the bulleted list icon,
 which produced the following HTML in FCK (you can see that one of the
 paragraphs has been removed and there are now three items

 {{{
 <p><span style="display: none;" id="1213186530111S">&nbsp;</span></p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p>This is some <strong>sample text</strong>. You are using <a
 href="http://www.fckeditor.net/";>FCKeditor</a>.</p>
 <p><span style="display: none;" id="1213186530282E">&nbsp;</span></p>
 }}}

 Firebug displays the following error

 {{{
 K.parentNode is null
 var
 FCKListCommand=function(A,B){this.Na...Node.replaceChild(J.listNode,A.root);}};
 http://www.fckeditor.net/fckeditor/editor/js/fckeditorcode_gecko.js (line
 78)
 }}}

 I'm using Firefox on Linux (Mozilla/5.0 (X11; U; Linux i686; en-US;
 rv:1.9) Gecko/2008060309 Firefox/3.0).

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2262#comment:4>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to