Hi there! I'm simply loosing my brain trying to fix a nasty bug with FCK. Basically I have two FCKeditor created with javascript invocation code (but even if I try to invoke them with PHP the situation is the same). These editors are instanced with different names, for example description and article. Since are on my admin-side I prefer to use Ajax so i try to catch the data using FCKeditorAPI as mentioned in tons of post || pages of documentations of FCK. To get the rendered contents i'm using this function (found in this forum, I think)
function getEditorValue( instanceName ) { // Get the editor instance that we want to interact with. var oEditor = FCKeditorAPI.GetInstance( instanceName ) ; if (!oEditor){ alert ("No instance named: " + instanceName) return; } // Get the editor contents as XHTML. return oEditor.GetXHTML( true ) ; // "true" means you want it formatted. }
Re: Multiple instances of FckEditor 2.6.3 (nightly) and Ajax