mirror of
https://github.com/Hopiu/ep_page_view.git
synced 2026-03-16 20:20:24 +00:00
added line number compatibility
This commit is contained in:
parent
d09de5ef6f
commit
d71b281182
2 changed files with 9 additions and 9 deletions
|
|
@ -28,16 +28,22 @@
|
|||
}
|
||||
|
||||
.outerPV{
|
||||
left:0px !important;
|
||||
width:850px !important;
|
||||
margin:auto;
|
||||
}
|
||||
|
||||
.outerBackground{
|
||||
background-color:#f7f7f7 !important;
|
||||
margin:none;
|
||||
width: 850px;
|
||||
margin:auto;
|
||||
border:none;
|
||||
}
|
||||
|
||||
.sidedivdelayed{
|
||||
top: 7px !important;
|
||||
left: auto !important;
|
||||
padding-top: 100px !important;
|
||||
}
|
||||
|
||||
.innerPV{
|
||||
background-color:#fff;
|
||||
border-radius: 5px 5px 0 0;
|
||||
|
|
|
|||
|
|
@ -19,15 +19,10 @@ if (!isMobile) {
|
|||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
if($('#options-linenoscheck').is(':checked')){
|
||||
$('#options-linenoscheck').click();
|
||||
$('#options-linenoscheck').attr("disabled", true);
|
||||
}
|
||||
$('#editorcontainer').css("top", "15px");
|
||||
var containerTop = $('.toolbar').position().top + $('.toolbar').height() +5;
|
||||
$('#editorcontainerbox').css("top", containerTop);
|
||||
$('#ep_page_ruler').show();
|
||||
pad.changeViewOption('showLineNumbers', false);
|
||||
},
|
||||
disable: function() {
|
||||
$('#editorcontainer, iframe').removeClass('page_view');
|
||||
|
|
@ -36,7 +31,6 @@ if (!isMobile) {
|
|||
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find("#innerdocbody").css("margin-left","-100px");
|
||||
$('iframe[name="ace_outer"]').contents().find('#outerdocbody').removeClass("outerBackground");
|
||||
$('#ep_page_ruler').hide();
|
||||
$('#options-linenoscheck').attr("disabled", false);
|
||||
var containerTop = $('.toolbar').position().top + $('.toolbar').height() +5;
|
||||
$('#editorcontainerbox').css("top", containerTop+"px");
|
||||
$('#editorcontainer').css("top", 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue