Add realtime preview and auto save in editor
Export ajax function