[svn r18521] FS#3643 - FCKEditor, Tunning the height of the templates list in the Documents tool.

skala
Ivan Tcholakov 17 years ago
parent 9dda2cbb82
commit 3aa2e830b6
  1. 8
      main/document/create_document.php
  2. 6
      main/document/edit_document.php
  3. 8
      main/inc/lib/fckeditor/editor/fckdialogframe.html

@ -1,4 +1,4 @@
<?php // $Id: create_document.php 18513 2009-02-16 03:14:45Z ivantcholakov $
<?php // $Id: create_document.php 18521 2009-02-16 18:28:44Z ivantcholakov $
/*
==============================================================================
@ -65,11 +65,11 @@ function InnerDialogLoaded()
//document.getElementById(\'content___Frame\').width=\'70%\';
//window.frames[0].FCKToolbarItems.GetItem("Template").Click;
}
function FCKeditor_OnComplete( editorInstance )
{
editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ;
document.getElementById(\'frmModel\').innerHTML = "<iframe height=505px; width=240px; id=\"template_iframe\" frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
document.getElementById(\'frmModel\').innerHTML = "<iframe height=525px; width=240px; scrolling=\'no\' id=\"template_iframe\" frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
}
function check_for_title()
@ -387,7 +387,7 @@ $form->addElement('style_submit_button', 'submit', get_lang('langCreateDoc'), 'c
$form->setDefaults($default);
// HTML
$form->addElement('html','<div id="frmModel" style="display:block; height:515px; width:250px; position:absolute; top:135px; left:1px;"></div>');
$form->addElement('html','<div id="frmModel" style="display:block; height:525px; width:240px; position:absolute; top:115px; left:1px;"></div>');
// If form validates -> save the new document
if ($form->validate())

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 18513 2009-02-16 03:14:45Z ivantcholakov $
<?php // $Id: edit_document.php 18521 2009-02-16 18:28:44Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -71,7 +71,7 @@ function InnerDialogLoaded()
function FCKeditor_OnComplete( editorInstance )
{
document.getElementById(\'frmModel\').innerHTML = "<iframe height=505px; width=240px; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
document.getElementById(\'frmModel\').innerHTML = "<iframe height=525px; width=240px; scrolling=\'no\' frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
}
@ -660,7 +660,7 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || api_is_allowed_
$form->setDefaults($defaults);
// show templates
$form->addElement('html','<div id="frmModel" style="display:block; height:515px; width:250px; position:absolute; top:135px; left:1px;"></div>');
$form->addElement('html','<div id="frmModel" style="display:block; height:525px; width:240px; position:absolute; top:115px; left:1px;"></div>');
$form->display();
//Display::display_error_message(get_lang('ReadOnlyFile')); //main API

@ -84,7 +84,7 @@ var FCKConfig = E.FCKConfig ;
window.focus() ;
// Dialog's size
var WindowSize= '455px';
var WindowSize= '480px';
// Sets the language direction.
var langDir = document.documentElement.dir = E.FCKLang.Dir ;
@ -150,15 +150,15 @@ document.write( '<link href="' + FCKConfig.SkinPath + 'fck_dialog.css" type="tex
<body onload="Init();" class="PopupBody">
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td id="TitleArea" class="PopupTitleSimple" style="padding-right: 63px;">
<td id="TitleArea" class="PopupTitleSimple" style="padding-right: 45px;">
<script type="text/javascript">
document.write( Args().Title ) ;
</script>
</td>
</tr>
<tr>
<td id="FrameCell" height="100%" valign="top">
<iframe id="frmMain" src="fckblank.html" name="frmMain" frameborder="0" height="470px" width="100%" scrolling="no">
<td id="FrameCell" height="100%" valign="top">
<iframe id="frmMain" src="fckblank.html" name="frmMain" frameborder="0" height="505px" width="100%" scrolling="no">
</iframe>
</td>
</tr>

Loading…
Cancel
Save