Please excuse my ignorance, but I am trying to get FCKeditor to work on my website.
What I expect from it (and please tell me if I am wrong), is the following:
Once installed, a user can access a particular page (may have to put in a password - but that coding is up to me), click the edit button, and edit the page. Upon saving it and confirming it - the page will be updated.
I have uploaded FCKeditor to my site, and am having trouble knowing what to do next. I have created a php file;
I can access it on my browser, and am presented with an editor screen - which I can do whatever I want in it - but when it comes to saving ???? Please, how does it work from there??
Many Thanks
The PHP file code I have is below:
<?php include("FCKeditor/fckeditor.php") ; ?>
RE: Getting FCKeditor to work
Can someone answer these questions:
1) How does FCKeditor SAVE my newly-written 'html' code to the file I want it to be saved to??
2) How Do I get the file I want edited - into the Editor?
Thanks in advance!
RE: Getting FCKeditor to work
You can work with files, databases, etc.... and with any server language or framework that you like, this component just takes care about the editing of HTML content using a nice enviroment instead of a textarea.
If you do some searches in the forum you will be able to find examples about how it can be done.
RE: Getting FCKeditor to work
You can get the HTML source of the FCKEditor content thru JavaScript and save as follows.
Create a hidden variable, assign the html content of FCKEditor and submit the form. Once if you get the content you can post it to some other PHP page and save the content in that page.
find the code..
<?php include("FCKeditor/fckeditor.php") ; ?>
RE: Getting FCKeditor to work
You don't need the javascript code to read the content of the editor, just create the editor with the proper name:
<?php include("FCKeditor/fckeditor.php") ; ?>
RE: Getting FCKeditor to work