Hi all,
I did my best to find answers to these by searching the net, but in vain.
How does the online content editing works with FCKEditor?
Let's say I am storing the html content in the database and displaying them in a specific hierachy in the client.
The things I want to do.
1) Display the content as an html page (Don't want the editor by default)
2) Bring the page content to the FCKEditor on pressing a button (editor takes the entire browser view). Modify it and save the changes to the database.
3) Create a new document on pressing say 'New Document' and save the content to the database.
4) How do I close the FCKEditor once the updation is done and bring the content to the browser?
Any help/guidance will be appreciated.
Regards,
AV
I did my best to find answers to these by searching the net, but in vain.
How does the online content editing works with FCKEditor?
Let's say I am storing the html content in the database and displaying them in a specific hierachy in the client.
The things I want to do.
1) Display the content as an html page (Don't want the editor by default)
2) Bring the page content to the FCKEditor on pressing a button (editor takes the entire browser view). Modify it and save the changes to the database.
3) Create a new document on pressing say 'New Document' and save the content to the database.
4) How do I close the FCKEditor once the updation is done and bring the content to the browser?
Any help/guidance will be appreciated.
Regards,
AV
RE: Using FCKEditor in a CMS kind of scenario
I am posting this just in case somebody stumbled on this topic.
I wrote a Servelet which will fetch the data from the database (string format containing the HTML body content, say "<p> test data </p>").
For view. I would put it inside the body of the html written in the response object.
For editing. I would insert the editor script in the html and the content inside a a textarea and use the FCKEditor.replaceTextArea() method. So editor comes up in the browser with the data.
Closing editor. It is just another request with the data obtained from the editer (editor.getXHTML()) as parameter in the request, save it. Display the document without editor.
Creating new document. Just a bare html constructed with the editor script and textarea with empty content.
Still I am doing all this in a desktop context using an embedded browser (thanks to jdic). All edit/view/new action triggered by post action via a script execution with appropriate indicator parameters.
I am new to webtechnologies. Pity that editors like FCKEditors are not available for integrating to a desktop application.
vijjj
Hope it helps.