jejacks0n / mercury

Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
http://jejacks0n.github.com/mercury
Other
2.63k stars 530 forks source link

How can you handle anchor URLs for tabbed pages? #367

Closed javidjamae closed 11 years ago

javidjamae commented 11 years ago

We have an editable region that we want to add to a tab within a page, but since our tabbing solution (Zurb Foundation), uses anchors tags to delineate tabs (as most tabbing implementations do), clicking on the tab while in editor mode causes Mercury to think that I'm switching URLs, because of the additional /editor in the URL. This then causes the page to reload and exit the editor view, disallowing me from accessing my editable region.

Has anybody else solved this problem before? I'd rather not roll out my own tabbing solution that doesn't use anchors, if there is a simple way to get it to work with Mercury.

javidjamae commented 11 years ago

My current workaround, BTW, is to put hidden editable regions on the main page, so I always edit the content on the main page and don't have to click into the tabs. But, my preference would be to edit the content directly within the view that it is rendered in.

jejacks0n commented 11 years ago

Links won't be hijacked in Mercury 2, so this won't be an issue anymore.