Hi,
When you are working in the editor and you click preview, what file does this open?
When I allow someone to edit a page they are only permitted to edit a 'editable' region. This is defined by using a header.php and footer.php include file. When I load in the content, I strip both include code away. When they save it, I put them back in again.
Probably a widely practised technique. The reason I ask though is when they preview, I could include these files to allow a preview of the entire page and not just the editable region.
Bizt
When you are working in the editor and you click preview, what file does this open?
When I allow someone to edit a page they are only permitted to edit a 'editable' region. This is defined by using a header.php and footer.php include file. When I load in the content, I strip both include code away. When they save it, I put them back in again.
Probably a widely practised technique. The reason I ask though is when they preview, I could include these files to allow a preview of the entire page and not just the editable region.
Bizt
RE: File in FCKeditor bundle used to preview?
If I recall correctly it is using the browser's built in DOM createDocument type of deal or some such. Basically not just some page that's editable.
Your best bet is probably to write a plugin that does the same thing. Pretty easy; just use the examples for accessing the editor's text, but put your custom headers and footers before and after.
Might be an easier way to do it, I haven't looked at how the preview action is being handled for a while, so things could have changed... but I'd say go with the plugin method, as you can keep it in a folder outside the FCKeditor root dir and not have to worry about re-creating your changes each time a new version comes out.
HTH,