Update plugins/preview/plugin.js

Added "previewPostProcess". This function is called when generating a preview (and should return a proper formatted HTML document) and can be used to postprocess the data from the CKEditor instance (ie in a CMS environment).