I am trying to custom save the content of a page added in the main editor of a page. So for that i have added a quick edit option for the user in the admin/pages .. When I right click on any of the page of the site tree, with the ID of the page appended at the last in the href i fire a query in the database and display the content inside a fancy box pop up with additionally added tinymce in that pop up.
I have attached an image to see the pop up and the contents.. So when i open the pop up after right clicking on the page, how can i show the contents in the text editor in proper format. Also i run a custom query to save the data in the data base. For saving i get the content using the
var tosaveval = tinymce.get('quickedit').getContent();
So through which functions or steps i need the data in "tosaveval" to pass through to make it in a proper format to save in the data base as silver stripe does.. Also if i get the content in the variable say $content so which way should i use to display them proper in the front end or the editor..
Right now i only use addslashes(content of the editor) to save but that does not save in a proper format.
And to display i am usign stripslashes(content from db) that also does not display in a proper format..
I need the steps for saving and displaying.. like
first pas the content to addslashes then pass it to htmlspecialchars() and then run an update query in the database with the content u get after these steps..
Thanks in Advance... Please help me...