Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using JSP and CKEditor to get website's content
HTML
<form method="POST">
       <textarea id="editor" name="editor">DEMO CKEDITOR</textarea>
       <input type="submit" value="Save changes">

       <div id="content" ></div>

       <script type="text/javascript">
           CKEDITOR.replace('editor');
       </script>
</form>


The contents of webiste are saved in div "content". How can I load them into CKEditor to edit and save changes?. After submit form, the website will display new content.

What I have tried:

I think we can use Ajax. But I'm a newbie and I'm not really understand it. I'm open to any help.
Thanks in advance!
Posted
Updated 9-Nov-20 5:58am

1 solution

you can get the value of the text in the editor using $_POST["editor"], and try to save accordingly.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900