I developing an ajax chat, and use this fantastic editor, with basic options.
I use the denonkeydown plugin to capture ENTER key and submit the data.
In Firefox that work very good, on Internet Explorer work, but with two errors
This is the function that fire when press enter key:
function DENOnKeyDownFunction(){
top.document.getElementById('chat-submit').click();
}
This is the collected data script:
var oEditor = FCKeditorAPI.GetInstance('chat_msg') ;
var content = oEditor.GetXHTML( true ) ;
oEditor.SetHTML('');
I have the Companion.JS v0.1 (http://www.my-debugbar.com/wiki/CompanionJS/HomePage) and fire this error:
1 .- Permission denied (line 32)(fckeditorcode_ie.js)
2 .- Syntax Error (line 32)(fckeditorcode_ie.js)
This can be a CompanionJS error or can have some error on my code or in the fckeditorcode_ie.js script ?
I repeat, the script works fine, just give that errors.
Thanks
attn
LeChuck
Wed, 07/04/2007 - 00:08
#1
RE: fckeditorcode_ie permission denied
Any help?
thanks
LeChuck
RE: fckeditorcode_ie permission denied
RE: fckeditorcode_ie permission denied
Here is the errors and the files:
fckkeystrokehandler.js
1.- permission denied for line: 136. This is the end of the file.¿?
2.- syntax error in line: 135. the line is 'return true ;'
fck_ie.js
Permission denied in line: 83. the line is 'var e = FCK.EditorWindow.event ;';
syntax error in line: 84. This line is empty.
Any help with this?
thanks
attn
LeChuck
RE: fckeditorcode_ie permission denied
But you should try to create a minimal test case, start with one of the samples and add just the minimum code to reproduce the error (or start with your code and remove everything until the error disappears)
Re: fckeditorcode_ie permission denied
Visual Studio debugger reports it to be on fck.js line 402
FCK.EditorDocument.detachEvent("onselectionchange", Doc_OnSelectionChange)
using IE 7.
The error only occurs whilst using IE, works fine in FF and Safari. Any help to get this fixed would be greatly appreciated.
Re: fckeditorcode_ie permission denied
I recall that such error can be thrown if you are calling the editor API stuff too early, when the editor is not yet ready for it. Be sure that the FCKeditor_OnComplete event has already been fired before doing any other action over the editor.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: fckeditorcode_ie permission denied
I am using asp.net 3.0 and FCK Editor version 2.6. When i refresh the page i get "permission denied" error.
I have update panel on my page.Is this creating error???.I can't remove update panel from my page.Is there any solution for it???
It was working fine before I applied update panel on my pages. Even when the page loads first time it does nto show this weird error.Bt next time after refersh I get this error.
We have some solutions too,But none of them is working:
1. Give write permissio's to the FCK folder.
2.I have read in other forums that FCK editor and website should be on same domain.Which is valid in our case.The FCk editor and website is on same domain.
What could be the solution for it.Promp reply is highly appreciated.
Thanks
Yuvika
Re: fckeditorcode_ie permission denied
I fixed both issues by wrapping SetHTML in a function which deferred the setting if either FCK wasn't loaded, or SetHTML had already been called in the last 0.5 seconds. Since then no more Permission Denied errors.
Hope this helps.
Regards
JAmes
Re: fckeditorcode_ie permission denied
When you call SetHTML, the browser has to load again the data, so you must wait for the OnAfterSetHTML event