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

Taking away the need for the <script> tag and the id part #9

Open
ghost opened this issue Mar 16, 2014 · 1 comment
Open

Taking away the need for the <script> tag and the id part #9

ghost opened this issue Mar 16, 2014 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Mar 16, 2014

Hi,

I'm trying to use this with my ghost blog. Is there any way to not pot that container with the id and the script tag so it would just replace the link string with the embed?

I tried doing this but it didn't work.

<section class="post-content" id="richcontent"> </section>
<script>olly.richify("{{content}}", document.getElementById("richcontent"), , {youtube: olly.EMBED, jsfiddle: olly.LINK});</script>
@abeisgoat
Copy link
Owner

This, this should work with Youtube links. Try this:

<script>olly.richify("{{content}}", document.getElementById("richcontent"));</script>

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

No branches or pull requests

1 participant