I am using FCK on an AJAX driven Website. But I can't make it work well.
With AJAX I insert a textarea into the page that is then transformed into an editor-instance.
The JS-Code to do this comes with the AJAX-request.
something like:
If a button is clicked I try to read out the entered/changed value with:
What am I doing wrong?
I searched the board but nothing I found solved the problem.
pleace help
Stil
With AJAX I insert a textarea into the page that is then transformed into an editor-instance.
The JS-Code to do this comes with the AJAX-request.
something like:
<textarea name="text_20" id="text_20">bla bla jadda jadda</textarea> <script type="text/javascript" > var oFCKeditor = new FCKeditor( 'text_20' ) ; oFCKeditor.BasePath = "js/fckeditor/" ; oFCKeditor.ToolbarSet = 'MyToolbar' ; oFCKeditor.ReplaceTextarea() ; </script>
If a button is clicked I try to read out the entered/changed value with:
alert(oFCKeditor.getData); -> undefined alert(FCKeditorAPI.GetInstance('oFCKeditor')); -> undefined
What am I doing wrong?
I searched the board but nothing I found solved the problem.
pleace help
Stil