Hi There,
I'm using the javascript implementation of the FCKEditor. So far I find it easy to integrate, but I'm having trouble when I have a screen with more than one instance. The error is on a certain scenario when the user cuts and pastes code from another application.
Here is my basic code:
.
.
.
<head>
<script type="text/javascript" src="../../FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor1 = new FCKeditor( 'MyTextarea1','410','100','Basic','' ) ;
oFCKeditor1.BasePath = "../../FCKeditor/" ;
oFCKeditor1.ReplaceTextarea() ;
var oFCKeditor2 = new FCKeditor( 'MyTextarea2','410','100','Basic','' ) ;
oFCKeditor2.BasePath = "../../FCKeditor/" ;
oFCKeditor2.ReplaceTextarea() ;
var oFCKeditor3 = new FCKeditor( 'MyTextarea3','410','100','Basic','' ) ;
oFCKeditor3.BasePath = "../../FCKeditor/" ;
oFCKeditor3.ReplaceTextarea() ;
}
</script>
</head>
<body>
<textarea id="MyTextarea1" name="MyTextarea1">This is <b>the</b> initial value.</textarea>
<textarea id="MyTextarea2" name="MyTextarea2">This is <b>the</b> initial value.</textarea>
<textarea id="MyTextarea3" name="MyTextarea3">This is <b>the</b> initial value.</textarea>
</body>
.
.
.
The issue is when the user is cutting pasting from another source. For example, if I follow these steps, IE will hang and chew up a huge amount of system resources:
Step 1: Load this the html page with the multiple FCKEditor instances.
Step 2: Open up a text document in notepad, and have the IE window and the notepad window sit side-by-side.
Step 3: Copy a section of text from notepad. Move the mouse over the IE window and into the appropriate FCK Editor and left click the mouse to activate the IE window AND the appropriate FCKEditor instance.
Step 4: Go back to notepad and copy another chunck of text to the clipboard. Move the mouse over the to IE window and into the appropriate FCK Editor window. Attepmt to activate the IE window and FCK Editor window at the same time.
The above steps basically throw IE for a loop and it eventually goes into "Not Respoding" status. The issue seems to be that the when the user attepts to put the focus on IE and an FCK instance AT THE SAME TIME, and the selected FCKEditor instance was not previously in focus.
Has anyone experience this ?? Does anyone know if there is an FCK config or javascript fix that may alleviate this ??
Cheers,
Jason
I'm using the javascript implementation of the FCKEditor. So far I find it easy to integrate, but I'm having trouble when I have a screen with more than one instance. The error is on a certain scenario when the user cuts and pastes code from another application.
Here is my basic code:
.
.
.
<head>
<script type="text/javascript" src="../../FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor1 = new FCKeditor( 'MyTextarea1','410','100','Basic','' ) ;
oFCKeditor1.BasePath = "../../FCKeditor/" ;
oFCKeditor1.ReplaceTextarea() ;
var oFCKeditor2 = new FCKeditor( 'MyTextarea2','410','100','Basic','' ) ;
oFCKeditor2.BasePath = "../../FCKeditor/" ;
oFCKeditor2.ReplaceTextarea() ;
var oFCKeditor3 = new FCKeditor( 'MyTextarea3','410','100','Basic','' ) ;
oFCKeditor3.BasePath = "../../FCKeditor/" ;
oFCKeditor3.ReplaceTextarea() ;
}
</script>
</head>
<body>
<textarea id="MyTextarea1" name="MyTextarea1">This is <b>the</b> initial value.</textarea>
<textarea id="MyTextarea2" name="MyTextarea2">This is <b>the</b> initial value.</textarea>
<textarea id="MyTextarea3" name="MyTextarea3">This is <b>the</b> initial value.</textarea>
</body>
.
.
.
The issue is when the user is cutting pasting from another source. For example, if I follow these steps, IE will hang and chew up a huge amount of system resources:
Step 1: Load this the html page with the multiple FCKEditor instances.
Step 2: Open up a text document in notepad, and have the IE window and the notepad window sit side-by-side.
Step 3: Copy a section of text from notepad. Move the mouse over the IE window and into the appropriate FCK Editor and left click the mouse to activate the IE window AND the appropriate FCKEditor instance.
Step 4: Go back to notepad and copy another chunck of text to the clipboard. Move the mouse over the to IE window and into the appropriate FCK Editor window. Attepmt to activate the IE window and FCK Editor window at the same time.
The above steps basically throw IE for a loop and it eventually goes into "Not Respoding" status. The issue seems to be that the when the user attepts to put the focus on IE and an FCK instance AT THE SAME TIME, and the selected FCKEditor instance was not previously in focus.
Has anyone experience this ?? Does anyone know if there is an FCK config or javascript fix that may alleviate this ??
Cheers,
Jason
RE: Multiple FCK instances and cut/paste error
Version 2.4 mentions a fix to "locking up after cut and paste operations" so I am hopeful that that is the problem I have and that it will actually solve it. Now I just have to convince my client to try again.
Reg
RE: Multiple FCK instances and cut/paste erro