Finally I found how the FCKeditor itself can be reached:
"FCKeditorAPI.GetInstance('InstanceName').EditorWindow.parent"
With this you have access to the window Object of the FCKeditor and not just its API or the editorArea. Through this you can find any object or variable the FCKeditor had loaded.
You can set or change settings of plugins. E.g. with the ImageManager I have added some internal variables that needed to be set when installing the plugin. Now you can set it from anywhere you want:
<script language="JavaScript" type="text/javascript">
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.EditorWindow.parent.IM_directEdit = true;
}
</script>
You can go back to the API (quite redundant I guess) with FCKeditorAPI.GetInstance('InstanceName').EditorWindow.parent.FCK
See any locale string
<script language="JavaScript" type="text/javascript">
function FCKeditor_OnComplete(editorInstance)
{
alert(editorInstance.EditorWindow.parent.FCKLang.About);
}
</script>
Why reading out the FCKLang? No idea, it just fun :p
But you can also change a loacle string should you wish. Who knows someone might come up with a usefull implementation of contacting the FCKLang Object
Mon, 11/13/2006 - 06:28
#1