Hey,
First time trying FCK here, coming from tinyMCE (shame ) I have managed to set it up and it is showing in my custom CMS system. But unlike tinyMCE, witch hooks up to existing textarea's fckeditor creates a new textarea. This is fine, but how can i define the name and id of that textarea, and how can i import text from my database into that textarea?
Hope I am understandable, i mean I used to have this to create a textaerea with an existing content that is retrieved:
<textarea name='content'id="content" rows="25" cols="85"/><?php echo $row['content']; ?></textarea><br/>
But with fks i need to use this, and it instantly creates a textbox. Were can i set my name and id, and where can i put the $row['content']; ?
<script type="text/javascript"> <!-- // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples. A real application should use something like this: // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; oFCKeditor.BasePath = '/fckeditor/' ; oFCKeditor.Height = 300 ; oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; oFCKeditor.Create() ; //--> </script>
Its really hard to explain but i hope someone understands and can help me.
Greetings.
Re: setting variables to my textarea?
Here is Your answer...
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=6800&p=34390&hilit=height#p34390