Hello everyone,
I have a question about modifying current webpages. Basically, what I'm trying to do is bring in the existing contents of a webpage into the CKEditor 3.0 so that it can be modified and saved.
I was looking at this;
CKEDITOR.config.newpage_html='';
I was wondering if there's a way to have the web page inserted somewhere in that code so that when the newpage is pressed, the code from the webpage will appear in the editor. The user can simple press the Source Button to modify it in the design format and save it.
I have a question about modifying current webpages. Basically, what I'm trying to do is bring in the existing contents of a webpage into the CKEditor 3.0 so that it can be modified and saved.
I was looking at this;
CKEDITOR.config.newpage_html='';
I was wondering if there's a way to have the web page inserted somewhere in that code so that when the newpage is pressed, the code from the webpage will appear in the editor. The user can simple press the Source Button to modify it in the design format and save it.
Re: Trying to update existing web page contents in CKEditor.
Hey chelsea7
This ones quite simple... just take the portion of the page you want the user to be able to edit and paste it into the textbox.
Now save it into a database replacing single and double quotes with your own code, like <single-quote> or something. On page load just read the content from the database doing the above in reverse and voila! Your page is displayed in the editor and can be edited in normal or HTML view!
We're doing this for a client at the mo but should have a demo on our site very soon!
Best of luck
Toby Gunston
Chimera Studios
http://www.chimera-studios.co.uk/