I am having trouble prepopulating the FCKEditor with a variable using PHP. Here is my code:
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.Create() ;
</script>
This works fine unless the variable contains newline tags, in which case the FCKEditor window doesn't even display on the page.
I really need this to work. Can anyone let me know what I'm doing wrong or help me get this to work?
Thanks!!
Ryan
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.Value = "<?php echo $SomeVariable; ?>" ;
oFCKeditor.Create() ;
</script>
This works fine unless the variable contains newline tags, in which case the FCKEditor window doesn't even display on the page.
I really need this to work. Can anyone let me know what I'm doing wrong or help me get this to work?
Thanks!!
Ryan

RE: cannot prepopulate FCKEditor value
http://sourceforge.net/forum/forum.php? ... _id=257180
http://sourceforge.net/forum/forum.php? ... _id=257180