Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mercury to replace existing editor #472

Open
johnswebdev opened this issue Oct 8, 2014 · 3 comments
Open

Using mercury to replace existing editor #472

johnswebdev opened this issue Oct 8, 2014 · 3 comments

Comments

@johnswebdev
Copy link

johnswebdev commented Oct 8, 2014

Is it possible to use mercury in the following (non rails) environment to replace an existing editor

This is in an admin area.
The main admin loads once and once only
The page with the editable area is loaded by ajax later and only then is just the editable area of the page is to be come editable

If the above is possible with mercury, could you provide some pointers
John


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ghost
Copy link

ghost commented Oct 8, 2014

Does the Ajax page get on top of the normal page or are u using a lightbox or something similar?
If u use a lightbox it will work.
With pure Ajax you need to set the mercury editor again I guess

@johnswebdev
Copy link
Author

The page with the editable sections gets loaded into a part of the page, not in a lightbox like way, but as an integral part of the page ( in a div ). For most editors this means that I have to call the functionality that is normally executed on DOM ready, on completion of the load instead. I am not sure that mercury would work in this way

@ghost
Copy link

ghost commented Oct 9, 2014

I think it will but you can link the mercury init function to the ajax load function you perform to load the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant