Hi!
I am planning on developing a module that will alter the preview function to act like the one in Wordpress. For those of you who don't know, it displays your post as a draft, exactly as it will look like on the real site.
To accomplish this, it would require the node to be saved/updated before it is previewed, since the node has to be loaded with node_load(). As far as I know, this is the only way to ensure that the node is being displayed correctly, with the correct theme etc.
To do this, I'm thinking of creating a preview function that actually saves/updates the node, but without invoking the nodeapi. Simply a copy of the node_save() function, removing the node_invoke_nodeapi lines. And to ensure that it's just a draft being created, I will set status to 0, and revision to 1.
And when the user clicks the Preview button, it'll open a new window with the actual node loaded.
Ok, so there has to be some complications since I can't find a module that does this, any thoughts?