hi. i have a form with 3 instances of the FCkeditor. they all always load for me, but the client says that one in particular often does not. any ideas why this might happen?
I had the same problem on a page with 2 instances of fckeditor, and the issue came from the javascript code. Both editors shared the same javascript FCKEditor instance. The solution was to use two different instances.
Can you paste the generated Javascript code that creates and display the editors ? This might help solving your problem. Also, is your code generated via a server side script like php or something ? if so, can you also paste the code that generates the javascript code.
In my case, the javascript code is generated via a python script on a zope server. The python script reads a javscript template, replacing every %i in the template by a number ( a counter )that is incremented at every FCKEditor instanciation. When the counter reaches 10, it is reset to 0. This permits to have only up to 10 editors in 1 page. If you create 11 instances in the same page, then the 11th and the 1st will share the same javascript code : <script> oFCKeditor1 = new FCKEditor("something"); oFCKeditor1.width = 100 ... </script>
Maybe this is what is happening in your case ? Y.Chaouche
hello, sorry - i didn't get a notification that you'd replied.
the site is in ASP.NET. the particular example below is an excerpt from the generated code on a form with three FCKeditor instances... so i'm not sure if it's the same issue. we are not seeing any problems ourselves, but the client keeps saying that the editors load slowly or not at all.
the below is probably going to look messy, sorry... maybe try copying into something to read.
<b>Body:</b> </td> </tr><tr> <td colspan="2"><div><input type="hidden" id="ctl00_content_admin_text_edit_siteeventBody" name="ctl00$content_admin_text$edit_siteeventBody" value="<div style="margin: 0in 0in 0pt;">Stroll down memory lane for a vintage night of tight-knit harmonies and smooth, stylized choreography. Happy days are here again with Doo Wop Reunion VIII featuring the smooth sounds of Johnny Maestro &amp; the Brooklyn Bridge (&ldquo;Sixteen Candles&rdquo;; &ldquo;The Worst That Could Happen&rdquo;). Also lending a nostalgic touch to the show are Kenny Vance &amp; the Planotones (&ldquo;Looking for an Echo&rdquo;; &ldquo;Life is But a Dream&rdquo;), Shirley Alston Reeves, original lead singer of The Shirelles (&quot;Soldier Boy&quot;) and The Dubs (&quot;Could This Be Magic&quot;).&nbsp;Plus you may have seen Special Guests: The Legends of Doo Wop on PBS' Doo Wop '50 and '51. The Legends of Doo Wop include Jimmy Gallagher of the Passions (&quot;Just to be With You&quot;; &quot;Gloria&quot;), Tommy Mara lead singer of the Crests (&quot;The Angels Listened In&quot;; &ldquo;Sixteen Candles&rdquo;), Frank Mancuso of The Imaginations (&quot;Guardian Angel&quot;; &quot;The Search Is Over&quot;), and Steve Horn, the bass voice of The 5 Sharks (&quot;Stormy Weather&quot;).&nbsp;Bop in for a night of musical style that brings back memories of music in the hallways, street corners, park benches and rec rooms of your favorite hometown.</div>" /><input type="hidden" id="ctl00_content_admin_text_edit_siteeventBody___Config" value="" /><iframe id="ctl00_content_admin_text_edit_siteeventBody___Frame" src="/bca/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_content_admin_text_edit_siteeventBody&Toolbar=Default" width="100%" height="500px" frameborder="no" scrolling="no"></iframe></div></td> </tr><tr> <td colspan="2"><hr color="black" /></td> </tr><tr> <td colspan="2"> <b>Related Info:</b>
</td> </tr><tr> <td colspan="2"><div><input type="hidden" id="ctl00_content_admin_text_edit_siteeventRelatedInfo" name="ctl00$content_admin_text$edit_siteeventRelatedInfo" value="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ornare sodales arcu. Donec mi ipsum, varius at, blandit vel, auctor non, metus. Morbi sagittis, lacus id luctus ullamcorper, tortor odio imperdiet mi, non rutrum nisl enim nec lacus. Aliquam vulputate enim nec ligula. Aliquam lorem felis, viverra nec, semper ut, commodo in, lorem. Curabitur et magna. Nulla facilisi. Sed erat ante, consectetuer vel, fermentum eget, nonummy vitae, tellus. Etiam malesuada sapien et neque. Suspendisse metus augue, venenatis vitae, dignissim ac, posuere mollis, dolor. Suspendisse ut elit sit amet nisl tincidunt pretium. In non diam.<br /> <br /> Duis a elit. Pellentesque tempor. Aliquam gravida, ante at fermentum consequat, orci elit porttitor arcu, placerat consequat tortor sapien et metus. Aliquam mollis pede eget lorem. Phasellus pellentesque, tellus eu commodo dictum, nibh purus vestibulum eros, et volutpat enim urna vel sem. Morbi erat odio, congue quis, consectetuer quis, eleifend id, enim. Pellentesque lacinia porttitor lectus. Curabitur eu lacus non odio blandit sodales. Donec a massa. Donec gravida, ante pharetra tincidunt elementum, magna nulla malesuada ipsum, quis egestas diam leo id neque. Nullam nec libero sit amet purus vehicula bibendum.<br /> <br /> Aliquam malesuada malesuada nibh. Fusce massa magna, tincidunt ac, dictum et, interdum at, turpis. Mauris orci arcu, tempor eget, viverra a, placerat id, odio. Donec condimentum. Sed sit amet diam a odio interdum feugiat. Aliquam nec eros id nisi tincidunt malesuada. Donec urna felis, tincidunt a, tincidunt a, hendrerit ut, dui. Nulla varius. Nunc nisi dui, condimentum et, sagittis ac, egestas id, ligula. Aliquam odio purus, varius vel, porta ac, sollicitudin at, nunc. Duis ornare velit et massa. Nunc dignissim dolor. Fusce luctus dictum enim. Maecenas sed est non nunc interdum pellentesque. Donec tristique urna non lacus. In consectetuer risus et tellus.<br /> <br /> Fusce sit amet nisl. Praesent blandit. Nam rhoncus sapien vitae mauris. In justo lectus, aliquet vestibulum, congue et, pretium at, urna. Cras quis sem sed ipsum tempus fringilla. Nullam est. Pellentesque purus tortor, sollicitudin sit amet, dapibus vitae, varius sed, ipsum. Sed vitae ligula. Integer commodo, odio vel dapibus venenatis, velit sem porta odio, a varius nibh odio id nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam tincidunt nibh ac enim ultricies tincidunt. Ut ut elit ac nunc varius euismod. Maecenas gravida pede vel felis. Nulla facilisi. Curabitur magna. Phasellus libero lorem, lacinia ac, tempor ut, sagittis et, erat.<br /> <br /> Proin convallis tincidunt neque. In eros tortor, sollicitudin sed, pellentesque eget, cursus tempor, magna. Aliquam dolor dolor, dapibus in, rutrum et, sodales eu, turpis. Vestibulum vel nibh eu turpis condimentum lacinia. Nunc eget magna quis nibh euismod gravida. Suspendisse potenti. Ut dui augue, hendrerit non, dignissim non, tempus nec, lorem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis imperdiet. Curabitur non pede ut lacus imperdiet facilisis. Vivamus pellentesque. Quisque facilisis vulputate mi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit." /><input type="hidden" id="ctl00_content_admin_text_edit_siteeventRelatedInfo___Config" value="" /><iframe id="ctl00_content_admin_text_edit_siteeventRelatedInfo___Frame" src="/bca/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_content_admin_text_edit_siteeventRelatedInfo&Toolbar=Default" width="100%" height="200px" frameborder="no" scrolling="no"></iframe></div> <span class="smallGray">Note: Any related information will appear below the main Body content.</span> </td> </tr><tr> <td colspan="2"> <b>Lecture Series Info:</b>
RE: multiple instances / not loading
I had the same problem on a page with 2 instances of fckeditor, and the issue came from the javascript code. Both editors shared the same javascript FCKEditor instance. The solution was to use two different instances.
Can you paste the generated Javascript code that creates and display the editors ? This might help solving your problem. Also, is your code generated via a server side script like php or something ? if so, can you also paste the code that generates the javascript code.
In my case, the javascript code is generated via a python script on a zope server. The python script reads a javscript template, replacing every %i in the template by a number ( a counter )that is incremented at every FCKEditor instanciation. When the counter reaches 10, it is reset to 0. This permits to have only up to 10 editors in 1 page. If you create 11 instances in the same page, then the 11th and the 1st will share the same javascript code :
<script>
oFCKeditor1 = new FCKEditor("something");
oFCKeditor1.width = 100
...
</script>
Maybe this is what is happening in your case ?
Y.Chaouche
RE: multiple instances / not loading
the site is in ASP.NET. the particular example below is an excerpt from the generated code on a form with three FCKeditor instances... so i'm not sure if it's the same issue. we are not seeing any problems ourselves, but the client keeps saying that the editors load slowly or not at all.
the below is probably going to look messy, sorry... maybe try copying into something to read.
thanks, c
<tr>
<td colspan="2"><span id="ctl00_content_admin_text_CustomValidator1" style="color:Red;display:none;">* </span>
<b>Body:</b>
</td>
</tr><tr>
<td colspan="2"><div><input type="hidden" id="ctl00_content_admin_text_edit_siteeventBody" name="ctl00$content_admin_text$edit_siteeventBody" value="<div style="margin: 0in 0in 0pt;">Stroll down memory lane for a vintage night of tight-knit harmonies and smooth, stylized choreography. Happy days are here again with Doo Wop Reunion VIII featuring the smooth sounds of Johnny Maestro &amp; the Brooklyn Bridge (&ldquo;Sixteen Candles&rdquo;; &ldquo;The Worst That Could Happen&rdquo;). Also lending a nostalgic touch to the show are Kenny Vance &amp; the Planotones (&ldquo;Looking for an Echo&rdquo;; &ldquo;Life is But a Dream&rdquo;), Shirley Alston Reeves, original lead singer of The Shirelles (&quot;Soldier Boy&quot;) and The Dubs (&quot;Could This Be Magic&quot;).&nbsp;Plus you may have seen Special Guests: The Legends of Doo Wop on PBS' Doo Wop '50 and '51. The Legends of Doo Wop include Jimmy Gallagher of the Passions (&quot;Just to be With You&quot;; &quot;Gloria&quot;), Tommy Mara lead singer of the Crests (&quot;The Angels Listened In&quot;; &ldquo;Sixteen Candles&rdquo;), Frank Mancuso of The Imaginations (&quot;Guardian Angel&quot;; &quot;The Search Is Over&quot;), and Steve Horn, the bass voice of The 5 Sharks (&quot;Stormy Weather&quot;).&nbsp;Bop in for a night of musical style that brings back memories of music in the hallways, street corners, park benches and rec rooms of your favorite hometown.</div>" /><input type="hidden" id="ctl00_content_admin_text_edit_siteeventBody___Config" value="" /><iframe id="ctl00_content_admin_text_edit_siteeventBody___Frame" src="/bca/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_content_admin_text_edit_siteeventBody&Toolbar=Default" width="100%" height="500px" frameborder="no" scrolling="no"></iframe></div></td>
</tr><tr>
<td colspan="2"><hr color="black" /></td>
</tr><tr>
<td colspan="2">
<b>Related Info:</b>
</td>
</tr><tr>
<td colspan="2"><div><input type="hidden" id="ctl00_content_admin_text_edit_siteeventRelatedInfo" name="ctl00$content_admin_text$edit_siteeventRelatedInfo" value="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ornare sodales arcu. Donec mi ipsum, varius at, blandit vel, auctor non, metus. Morbi sagittis, lacus id luctus ullamcorper, tortor odio imperdiet mi, non rutrum nisl enim nec lacus. Aliquam vulputate enim nec ligula. Aliquam lorem felis, viverra nec, semper ut, commodo in, lorem. Curabitur et magna. Nulla facilisi. Sed erat ante, consectetuer vel, fermentum eget, nonummy vitae, tellus. Etiam malesuada sapien et neque. Suspendisse metus augue, venenatis vitae, dignissim ac, posuere mollis, dolor. Suspendisse ut elit sit amet nisl tincidunt pretium. In non diam.<br />
<br />
Duis a elit. Pellentesque tempor. Aliquam gravida, ante at fermentum consequat, orci elit porttitor arcu, placerat consequat tortor sapien et metus. Aliquam mollis pede eget lorem. Phasellus pellentesque, tellus eu commodo dictum, nibh purus vestibulum eros, et volutpat enim urna vel sem. Morbi erat odio, congue quis, consectetuer quis, eleifend id, enim. Pellentesque lacinia porttitor lectus. Curabitur eu lacus non odio blandit sodales. Donec a massa. Donec gravida, ante pharetra tincidunt elementum, magna nulla malesuada ipsum, quis egestas diam leo id neque. Nullam nec libero sit amet purus vehicula bibendum.<br />
<br />
Aliquam malesuada malesuada nibh. Fusce massa magna, tincidunt ac, dictum et, interdum at, turpis. Mauris orci arcu, tempor eget, viverra a, placerat id, odio. Donec condimentum. Sed sit amet diam a odio interdum feugiat. Aliquam nec eros id nisi tincidunt malesuada. Donec urna felis, tincidunt a, tincidunt a, hendrerit ut, dui. Nulla varius. Nunc nisi dui, condimentum et, sagittis ac, egestas id, ligula. Aliquam odio purus, varius vel, porta ac, sollicitudin at, nunc. Duis ornare velit et massa. Nunc dignissim dolor. Fusce luctus dictum enim. Maecenas sed est non nunc interdum pellentesque. Donec tristique urna non lacus. In consectetuer risus et tellus.<br />
<br />
Fusce sit amet nisl. Praesent blandit. Nam rhoncus sapien vitae mauris. In justo lectus, aliquet vestibulum, congue et, pretium at, urna. Cras quis sem sed ipsum tempus fringilla. Nullam est. Pellentesque purus tortor, sollicitudin sit amet, dapibus vitae, varius sed, ipsum. Sed vitae ligula. Integer commodo, odio vel dapibus venenatis, velit sem porta odio, a varius nibh odio id nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam tincidunt nibh ac enim ultricies tincidunt. Ut ut elit ac nunc varius euismod. Maecenas gravida pede vel felis. Nulla facilisi. Curabitur magna. Phasellus libero lorem, lacinia ac, tempor ut, sagittis et, erat.<br />
<br />
Proin convallis tincidunt neque. In eros tortor, sollicitudin sed, pellentesque eget, cursus tempor, magna. Aliquam dolor dolor, dapibus in, rutrum et, sodales eu, turpis. Vestibulum vel nibh eu turpis condimentum lacinia. Nunc eget magna quis nibh euismod gravida. Suspendisse potenti. Ut dui augue, hendrerit non, dignissim non, tempus nec, lorem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis imperdiet. Curabitur non pede ut lacus imperdiet facilisis. Vivamus pellentesque. Quisque facilisis vulputate mi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit." /><input type="hidden" id="ctl00_content_admin_text_edit_siteeventRelatedInfo___Config" value="" /><iframe id="ctl00_content_admin_text_edit_siteeventRelatedInfo___Frame" src="/bca/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_content_admin_text_edit_siteeventRelatedInfo&Toolbar=Default" width="100%" height="200px" frameborder="no" scrolling="no"></iframe></div>
<span class="smallGray">Note: Any related information will appear below the main Body content.</span>
</td>
</tr><tr>
<td colspan="2">
<b>Lecture Series Info:</b>
</td>
</tr><tr>
<td colspan="2"><div><input type="hidden" id="ctl00_content_admin_text_edit_siteeventLectureInfo" name="ctl00$content_admin_text$edit_siteeventLectureInfo" value="" /><input type="hidden" id="ctl00_content_admin_text_edit_siteeventLectureInfo___Config" value="" /><iframe id="ctl00_content_admin_text_edit_siteeventLectureInfo___Frame" src="/bca/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_content_admin_text_edit_siteeventLectureInfo&Toolbar=Default" width="100%" height="200px" frameborder="no" scrolling="no"></iframe></div></td>
</tr><tr>