jejacks0n/mercury — Issue #36: saveStyle option not used by page_editor?
Author: JeanMertz
Created: 2011-10-17 08:45:15+00:00
State: open

I tried setting the saveStyle option to 'form' to debug some weird behavior while saving Mercury data on a rails app running in production, but it seems like saveStyle is never passed in the pageEditor initialization.

At first I wanted to use the `?saveStyle=form` option, but I couldn't, because I use sprockets and it doesn't allow for any params to be added to filenames, so instead I injected it directly in the default options block in mercury.js, like:

```javascript
var options = {
// A path or url from which the javascripts and css should be loaded.
src: '/assets',
saveStyle: 'form',
// A value defined in the packages above. Development is used by default. If you want to provide your own package
// you can just define one before including this script.
pack: 'development'
};
```

but the content was never submitted as form data. In the end I uncommented line `156` in page_editor.js.coffee to make it work, any thoughts on this?