Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

[HTML5 preview] [asciidoctorj] iframe : making linking between anchors work #12

Closed
mgreau opened this issue Nov 27, 2013 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@mgreau
Copy link
Owner

mgreau commented Nov 27, 2013

The links in the HTML5 rendered view doesn't work, in fact the whole page is loaded into the iframe.

It's a known behavior for iframe, a workaround is possible in Javascript (works with FireFox 11 and Chrome)

demo : http://matthewmanela.com/IFrameTest/Parent.html
blog :
http://matthewmanela.com/blog/making-linking-between-anchors-in-an-iframe-work-in-firefox-4-and-above/

@ghost ghost assigned mgreau Nov 27, 2013
@mgreau mgreau added this to the v0.1.0-alpha3 milestone Feb 5, 2014
@mgreau
Copy link
Owner Author

mgreau commented Feb 24, 2014

Thanks to the Extension API, it's possible to add this Javascript files with the Postprocessor feature.
http://asciidoctor.org/docs/install-and-use-asciidoctor-java-integration/#postprocessor

My first tests are OK :)

@anthonny
Copy link

I've made the same mechanism in the directive anthonny/angular-asciidoc-directive@d821f26, called that "transformer" but i prefer "postprocessor" :)

Maybe it will serve you.

@mgreau
Copy link
Owner Author

mgreau commented Feb 24, 2014

yes cool !!
The goal is to have the same behavior for "offline mode" and "online mode".
I don't know if the Extension API is available with Asciidoctor.js // cc @Mogztter @mojavelinux

@mgreau mgreau closed this as completed in 0a5d909 Feb 24, 2014
@mojavelinux
Copy link
Contributor

The extension API JavaScript file will be available as soon as we merge the
pull request made from the 1.5.0.preview.2 branch. You can grab the file
from that pull request (see the asciidoctor.js repo).

mgreau added a commit that referenced this issue Mar 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants