Mercury Editor edits a whole Rails page with contentEditable regions, and its author says this version is no longer maintained
Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
At a glance
- What is it?
- jejacks0n/mercury treats an entire page as editable, shows one toolbar for all regions and avoids iframes. It was written in CoffeeScript and jQuery on Rails 3.2, and the README points to a rewrite.
- Who is it for?
- Mercury Editor is a fit only if you are maintaining an old Rails 3.2 application that already uses it, or studying how an inline page editor without iframes was built. Do not start a new project on it: the README says this version is no longer maintained by its author, and the browser list stops at Internet Explorer 10, Chrome 10 and Firefox 4 era releases.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 49 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- jejacks0n/mercury2,629 ★ · -3
| Repository | 2026-10-11 | 2026-11-25 |
|---|---|---|
| jejacks0n/mercury | 2.6k | 2.6k |
-3 Stars in the last 45 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
One toolbar for the whole page, with contentEditable on block elements
Mercury Editor compares itself to TinyMCE and CKEditor, and then says it uses a different usage paradigm. It expects that an entire page is something that can be editable, and it lets you specify different types of editable regions on that page. A single toolbar serves every region.
The mechanism is the HTML5 contentEditable feature on block elements, used in place of iframes. The README gives the consequence: CSS can be applied in ways that many other editors cannot handle, because the editable content sits in the page itself and not in a separate document.
The author's story section repeats the motivation. He wanted an editor that did not use iframes to edit content, with editable areas that let CSS flow naturally, and found none decent at the time. Aloha Editor appeared later, and he judged that none of the others had every feature he wanted.
The built-in region types and the tools around them
Custom regions come in five default kinds: Full HTML, Markdown, Snippet, Image and Simple. Each region on the page uses one of these, and you can define your own.
The highlighted feature list is specific. Previewing shows content as it will look. Link tools insert and edit links, including TOC and bookmark links. Media tools insert and edit images, YouTube videos and Vimeo videos. Image uploading accepts images dragged from the desktop, uploads them automatically and inserts them. Table editing supports multiple column and row spans. Snippets are predefined and reusable bits of markup or code, inserted by drag and drop. A low-profile internationalization system handles translation.
The README calls the full feature list pretty long, so these are the highlights and not the full set.
Installing in Rails means a gem, a generator and a sprockets manifest
For Rails, add the gem to your Gemfile and run bundle:
gem 'mercury-rails'The configuration file and overrides come from the install generator:
rails generate mercury:installThat generator writes a configuration file to /app/assets/javascripts/mercury.js. The file also works as a manifest that uses sprockets require to pull in dependencies. The generator can optionally install the layout and css files.
Two more generators handle the parts that depend on your application. rails generate mercury:install:images gives a starting point for image uploads and rails generate mercury:install:authentication gives a basic authentication file. The sprockets manifest approach ties the editor to the Rails 3.2 asset pipeline that the project was written on.
Image uploading adds paperclip to your Gemfile and expects a migration
Mercury has a basic facility for image uploads, and the images generator is described as a starting point for your own back end integration. It is not a finished storage layer.
For Mongoid and MongoDB, the generator accepts the --orm=mongoid option to add the right model. The generator also puts paperclip into your Gemfile, along with mongoid_paperclip if needed, so you have to run bundle or make your own adjustments. With ActiveRecord you must migrate your database.
If you do not plan to allow uploads, the mercury configuration can disable the feature entirely. The practical cost is that a project that does not want a file attachment gem still receives one from the generator unless you skip it.
Authentication is a stub you must fill in
The authentication generator creates a file with a basic implementation, and you write your own logic into it. It provides a simple way to restrict the actions in the default MercuryController to users who have the required privileges.
The README is blunt about why it stops there. Authentication varies largely from application to application, so it offers a basic approach and assumes you will write in what you want. Until you do, the editing actions are not protected by anything specific to your user model.
For a page editor that saves changes to live content, that is the first thing to confirm in any deployment. The README documents no default role or permission scheme.
Browser support stops at releases from the Internet Explorer 10 era
Mercury says it was written for the future and does not support legacy browsers or browsers that do not follow the W3C specifications for content editing. The supported list is Internet Explorer 10+, Chrome 10+, Firefox 4+, Safari 5+, Opera 11.64+ and Mobile Safari on iOS 5+.
Those version numbers are what the project documents. It adds that any browser will be supported if it supports the W3C specification in the future, but that there are no plans for alternate implementations.
The README has no statement about current browser releases, so whether the contentEditable behavior still works in them is not documented. Test it before you rely on it. The README also states it is built on CoffeeScript and jQuery for the JavaScript side.
The master branch is the old version, and the author says he no longer maintains it
The Developer Note says a new version of Mercury Editor exists on the mercury2 branch. The new project is meant to take the place of this one, and the Rails portions would move to a new repo. The author planned to rename master to mercury1 and mercury2 to master, and warned of a purge of pull requests and issues when the transition takes place.
He states that the current version is no longer maintained by him and that managing the transition, or sticking with the current version, is the user's responsibility. He says he does not get paid for this and uses the project as a proving ground.
The repository is not archived. Its last push was on 2026-10-07, and it has no GitHub releases. GitHub does not recognize a license for it. The non-Rails download named in the README is mercury-v0.9.0.zip.
Editorial conclusion
Mercury Editor is a fit only if you are maintaining an old Rails 3.2 application that already uses it, or studying how an inline page editor without iframes was built. Do not start a new project on it: the README says this version is no longer maintained by its author, and the browser list stops at Internet Explorer 10, Chrome 10 and Firefox 4 era releases. Before touching it, read the Developer Note in the README and check whether the mercury2 branch is the one you actually want.
Frequently asked questions
What is Mercury Editor?
Mercury Editor is a WYSIWYG editor for Rails that treats an entire page as editable. It uses contentEditable regions and a single toolbar and avoids iframes.
How do I install Mercury Editor in Rails?
Add gem 'mercury-rails' to your Gemfile and run bundle. Then run rails generate mercury:install to get the configuration file in /app/assets/javascripts/mercury.js.
Is Mercury Editor still maintained?
The README says the current version is no longer maintained by its author, who points to a new version on the mercury2 branch. The repository's last push was on 2026-10-07.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/jejacks0n-mercury)Star history chart for your README
[](https://hysenlabs.com/projects/jejacks0n-mercury)Was this useful?