mirror of
https://github.com/Hopiu/ep_page_view.git
synced 2026-04-12 08:31:01 +00:00
seems to have fixed toggling between page view and none page view just fine
This commit is contained in:
parent
42512b3161
commit
92624d6cef
3 changed files with 8 additions and 2 deletions
|
|
@ -54,7 +54,7 @@
|
|||
}
|
||||
|
||||
#innerdocbody {
|
||||
min-height:1200px;
|
||||
min-height:1500px;
|
||||
}
|
||||
|
||||
#innerdocbody > div{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
overflow: hidden;
|
||||
background-color: #f7f7f7;
|
||||
text-align: center;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
iframe.page_view {
|
||||
|
|
|
|||
|
|
@ -12,12 +12,17 @@ if (!isMobile) {
|
|||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").addClass('innerPV');
|
||||
$('iframe[name="ace_outer"]').contents().find("iframe").addClass('outerPV');
|
||||
$('iframe[name="ace_outer"]').contents().find('#outerdocbody').addClass("outerBackground");
|
||||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").css("margin-left","0px");
|
||||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").contents().find('.pageBreak').click(function(e){
|
||||
$(this).focusout().blur();
|
||||
top.console.log("Can't edit pagebreak Line");
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
if($('#options-linenoscheck').is(':checked')){
|
||||
$('#options-linenoscheck').attr("disabled", true);
|
||||
$('#options-linenoscheck').click();
|
||||
}
|
||||
|
||||
$('#ep_page_ruler').show();
|
||||
},
|
||||
|
|
@ -26,10 +31,12 @@ if (!isMobile) {
|
|||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").removeClass('innerPV');
|
||||
$('iframe[name="ace_outer"]').contents().find("iframe").removeClass('outerPV');
|
||||
// $('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").contents().find("div").removeClass("innerPVDiv");
|
||||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").css("margin-left","-100px");
|
||||
// $('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").contents().find(".pageBreak").css({width:"100%"});
|
||||
// $('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").contents().find(".pageBreakComputed").hide('pageBreakFullScreen');
|
||||
$('iframe[name="ace_outer"]').contents().find('#outerdocbody').removeClass("outerBackground");
|
||||
$('#ep_page_ruler').hide();
|
||||
$('#options-linenoscheck').attr("disabled", false);
|
||||
}
|
||||
}
|
||||
/* init */
|
||||
|
|
|
|||
Loading…
Reference in a new issue