how do i get it so that my script wont error out when the element editor isnt present?
Code:
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'editor' ) ;
oFCKeditor.BasePath = "../editor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>