I just got the CKEditor 4 with inline editing. I want to do a CMS for a site I'm working on. Here is what I want to do:
<div contenteditable="true">
//Site code
</div>
<button onclick="">Save</button>
I would like to have a script that will do save and update the PHP file I want to edit. Just like get the content of the edited page then input it to the target file like home.php
.
I did some research but I can't find a good simple code that will only update the file, just like this one "Save data to PHP / Mysql with inline edit in CKEditor". When I test it, it doesn't update but it just puts the text under div
, and it doesn't update the file.
Note: I'm a newbie on this one...