When I click save, the value returned does not reflect any changes I made. For instance, I have it setup to default display "hello" but if I change it to "something else" the post data is still "hello". I must just be doing something wrong. Can anyone pinpoint the problem? Here is my code:
<?php if(isset($_POST['block1'])) { print $_POST['block1']; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> <head> <script type="text/javascript" src="/scripts/jquery.min.js"></script> <script type="text/javascript" src="/scripts/jquery-ui.min.js"></script> <script type="text/javascript" src="/_mysite/scripts/core.js"></script> <script type="text/javascript" src="/_mysite/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/_mysite/ckeditor/adapters/jquery.js"></script> </head> <body> <script type="text/javascript"> $(document).ready(function(){ $("textarea#ckeditor").ckeditor(function() { }, { resize_enabled : false }); }); </script> <form method="post" action="<?php print $_SERVER['REQUEST_URI']; ?>"> <textarea cols="" rows="" name="block1" id="ckeditor">Hello</textarea> </form> </body> </html>
Re: CKEditor isn't changing textarea value when saving!!
Re: CKEditor isn't changing textarea value when saving!!
to this and it worked...