bino7 / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

IFrame support #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Don't working from an IFrame.

Example usage - Facebook Canvas application.

Original issue reported on code.google.com by Zhiz...@gmail.com on 26 Aug 2011 at 6:42

GoogleCodeExporter commented 8 years ago
Can you be more specific? I have no idea what you mean with "from an IFrame". 
It should work fine in IFrames.

Original comment by b...@stackoverflow.com on 31 Aug 2011 at 8:56

GoogleCodeExporter commented 8 years ago
It should, but don't working.

Try something like this:
<html>
<iframe width="1000" height="1000" 
src="http://127.0.0.1/pagedown/demo/browser/demo.html"/>
</html>

Original comment by Zhiz...@gmail.com on 31 Aug 2011 at 9:05

GoogleCodeExporter commented 8 years ago
The simple fix for this is:

8:        doc = document, //top.document,

but I'm not sure it is good solution.

Original comment by Zhiz...@gmail.com on 31 Aug 2011 at 9:06

GoogleCodeExporter commented 8 years ago
here:

http://code.google.com/p/pagedown/source/browse/Markdown.Editor.js#8

Original comment by Zhiz...@gmail.com on 31 Aug 2011 at 9:10

GoogleCodeExporter commented 8 years ago
Good catch, yeah, those uses of top didn't seem to make any sense.

http://code.google.com/p/pagedown/source/detail?r=91230a6d28f016f820fad5c0509b4e
075dff5b51

Original comment by b...@stackoverflow.com on 31 Aug 2011 at 9:23