Looking at your samples I have implemented this the same way.
Which works, however if $row["warning_msg"] is empty I want nothing in the textarea. However, ckeditor always seems to add the following into the source:
How can I disable this, as the input is to be included in an already built page.
><textarea id="message1" name="message"><?php echo $row["warning_msg"]."&nbsp;"; ?></textarea> <script type="text/javascript"> //<![CDATA[ CKEDITOR.replace( 'message1', { fullPage : true }); //]]> </script>
Which works, however if $row["warning_msg"] is empty I want nothing in the textarea. However, ckeditor always seems to add the following into the source:
<html> <head> <title></title> </head> <body> </body> </html>
How can I disable this, as the input is to be included in an already built page.
Re: Default text is not empty...
My guess would be that fullpage is ment to be used on full template pages. Where there is always some content in the page.
If empty content is always like you described after posting the value you should post a ticket on after you have verified that there is no such bug listed already http://dev.fckeditor.net/ .
Before the problem is fixed you could test at server side if content matches empty as you described and in that case clear the server input variable.
If you don't need anything else besides content inside body tag you should not use config variable fullPage: true
Re: Default text is not empty...