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

The preview is not displaying #2

Closed
tispratik opened this issue Oct 28, 2012 · 1 comment
Closed

The preview is not displaying #2

tispratik opened this issue Oct 28, 2012 · 1 comment

Comments

@tispratik
Copy link

Thanks for making the gem. I could not get the preview working. Do i need to pass anything else to the settings?

@tamaloa
Copy link
Contributor

tamaloa commented Jun 3, 2013

I had to add the correct path for the preview endpoint mounted by the engine.
The default settings under vendor/assets/javascripts/sets/* do not all contain the correct path. I only found the markdown setting work out of the box.

Using textile in my case my application.css.scss contains the following:

mySettings.previewParserPath = '/markitup/preview'

$(document).ready(function() {
    $("textarea").markItUp(mySettings)
});

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

2 participants