I have a php script which saves my form entries to a mysql db. In my html form the following is used to hold that entry:
<input type="text" name="blog" />
Please can someone show me how this is used in the following FCKeditor code (in the place of 'oFCKeditor.Value'=):
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Height = 250 ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = 'This is some sample text' ;
oFCKeditor.Create() ;
</script>
Many thanks.
<input type="text" name="blog" />
Please can someone show me how this is used in the following FCKeditor code (in the place of 'oFCKeditor.Value'=):
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Height = 250 ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = 'This is some sample text' ;
oFCKeditor.Create() ;
</script>
Many thanks.
RE: simple javascript edit?
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'blog' ); // This is the name of the input field
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Height = 250 ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = 'This is some sample text' ; // This is what will be displayed by default in the editor
oFCKeditor.Create() ;
</script>