I already use this fine:
<script type="text/javascript">
var sBasePath= '/Library/fckeditor4/';
var oFCKeditor = new FCKeditor('Content') ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = 'Transitional' ; //Transitional
oFCKeditor.Height = 350;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = '';
oFCKeditor.Create() ;
</script>
no problem. BUT, how do you create an FCK editor instance after a page has loaded, in a specific place? There are times where I wish to do this. Any ideas?
Thank you,
Samuel
<script type="text/javascript">
var sBasePath= '/Library/fckeditor4/';
var oFCKeditor = new FCKeditor('Content') ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = 'Transitional' ; //Transitional
oFCKeditor.Height = 350;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = '';
oFCKeditor.Create() ;
</script>
no problem. BUT, how do you create an FCK editor instance after a page has loaded, in a specific place? There are times where I wish to do this. Any ideas?
Thank you,
Samuel
Re: creating an instance of FCKEditor AFTER page loads
HTML
Not sure if this is what you were after? But it might point you in the right direction.
... I can't get it to set the tool bar to basic though... still looking
Re: creating an instance of FCKEditor AFTER page loads
fck.Config["CustomConfigurationsPath"] = "/includes/fckconfig.js" ;
does it mean that I'm loading a different file than the one that would be loaded from the
<script id="3rdpartyfckeditor" type="text/javascript" src="../Library/fckeditor/fckeditor.js"></script>
tag in the head? i.e. if I already have included that script, do I need this line? Thanks, I think I'll work better with this if I understand the process.
Samuel
Re: creating an instance of FCKEditor AFTER page loads