diff options
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -647,6 +647,21 @@ }; }); + book.on("renderer:chapterDisplayed", function() { + + // cleanup possibly interfering styles + var c = $("#reader iframe").contents(); + + c.find("p") + .removeAttr("style") + .removeAttr("class") + .css("margin", "0px"); + + c.find("*") + .removeAttr("class"); + + }); + book.on("renderer:keydown", hotkey_handler); book.getMetadata().then(function(meta){ |