mercury icon indicating copy to clipboard operation
mercury copied to clipboard

How to prevent loading mercury.js on all pages?

Open wingleungchoi opened this issue 9 years ago • 0 comments

Hi, i followed the http://railscasts.com/episodes/296-mercury-editor?view=comments&_=1428483497495. I know to use "saveUrl" rather than "saveURL", turn off turbolink and data-mercury="full". It works.

However, i am thinking how to prevent loading mercury.js on all pages. Do mercury.js have to be in app/assets/javascripts? I tried to store it another path and use javscript_include_tag to require it on particular page. It seems it doesn't change the saveUrl and redirect window.location. Remove //= require_tree . in application.js is the only way to prevent load it on all pages?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10702407-how-to-prevent-loading-mercury-js-on-all-pages?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).

wingleungchoi avatar Apr 08 '15 10:04 wingleungchoi