I am working with a template which calls the old FCKEditor using the following:
I am trying to update the template to use the latest version of CKEditor. I have uploaded the necessary files and followed the installation instructions. Using the following I am able to get the editor to appear in the template along with the previously entered data (it is being used with a CMS).
However I cannot get the data to save. Looks like I need to create a javascript call that enables the data to be saved in a similar way as it was in the original but I have no idea how to do this with the CKEditor. I have very little experience working with Javascript. Any help you can offer would be very appreciated. Thanks.
<textarea style="display:none" id="fck_source_{NAME}">{VALUE}</textarea>
<script type="text/javascript">
function saveContent{NAME}(){
}
var oFCKeditor = new FCKeditor(
'{NAME}' ,
'{WIDTH}' ,
'{HEIGHT}' ,
'{TOOLBAR}' ,
document.getElementById("fck_source_{NAME}").value
) ;
oFCKeditor.BasePath = "3rdparty/fck/" ;
oFCKeditor.portId = '{NAME}';
oFCKeditor.Create() ;
</script>
I am trying to update the template to use the latest version of CKEditor. I have uploaded the necessary files and followed the installation instructions. Using the following I am able to get the editor to appear in the template along with the previously entered data (it is being used with a CMS).
<textarea style="display:none" id="fck_source_{NAME}">{VALUE}</textarea>
<script type="text/javascript">
CKEDITOR.replace( 'fck_source_{NAME}' );
</script>
However I cannot get the data to save. Looks like I need to create a javascript call that enables the data to be saved in a similar way as it was in the original but I have no idea how to do this with the CKEditor. I have very little experience working with Javascript. Any help you can offer would be very appreciated. Thanks.