Jump to content

Recommended Posts

Dear All : I install ckeditor and there is a folder _sample in that there is a file fullpage.html .  I made changes to text in text area and clicked on save button , but it did not save . Want i want to do is when save button is clicked the page open for editting say for example index.html . then on save button click it should make changes to index.html page on page refresh

Link to comment
https://forums.phpfreaks.com/topic/255081-html-editor-problem/
Share on other sites

Say for eg i have hosted my website on godaddy . Now for eg there is a web page index.html . now i install the folder of ckeditor on godaddy . Now say i open the web page for eg www.marte.com/index.html in ckeditor and make the change and save it . Then when i refresh the index.html that is www.marte.com/index.html while the change reflect or do i need to publish or it will automatically save the changes and reflect it

 

On button click the change should reflect will this be done through php or javascript

 

 

Link to comment
https://forums.phpfreaks.com/topic/255081-html-editor-problem/#findComment-1308119
Share on other sites

javascript will not be able to edit the file, you need to run a PHP script to edit the file.

 

I was talking about java (not javascript) for use on your HDD, though PHP would be the easiest choice.

 

Use php.

 

Are you trying to edit the entire web-pages HTML and then save it - or just some text?

 

Use file_get_contents() to retrieve the file's HTML, echo it into the ckeditor textarea, edit it, and when you post it back use file_put_contents() to write the file

Link to comment
https://forums.phpfreaks.com/topic/255081-html-editor-problem/#findComment-1308417
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.