gpt4 book ai didi

php - CKEditor 雄心勃勃的滚动

转载 作者:行者123 更新时间:2023-12-04 04:54:06 25 4
gpt4 key购买 nike

我对 CKEditor 有问题。我有一张 table ,在那张 table 上我有 ckeditor。当我按下回车键时,它会将我的页面滚动到底部。我注意到这是由于 ckeditor 上方的字段而发生的。这些字段可调整大小,因此这是问题的来源之一。而且我相信其他人也有同样的问题。我没有在这里粘贴代码,因为我的页面有 935 行。有谁知道如何解决这个问题?

更新:这是代码的简短版本

<html>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="achtergrond2" height="45" align="center" class="toptitel">Ticket title</td>
</tr>
<tr><td align="center">Here goes errors or confirmations</td></tr>
<tr>
<td>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<form name="pdf" action="pdf_werkbon.php" target="_blank" method="GET" style="margin-bottom:0; margin-top:10px;" accept-charset="UTF-8">
<a colspan="3" class="achtergrond2" valign="top"><a href="#" class="standaard" onClick="JavaScript: Verstuur2(forms[0], '1');"> <img src="../images/print_printer.png" border="0">Hand-out</a>
<span style="position:aboslute; float:right;"><a href="../index_account.php?id=id;?>&submenu=32" target="_blank" class="standaard" > <img src="../img/customers.png" border="0">Account</a></span><br/><br/>
<input type="hidden" value="" name="id_tic">
<input type="hidden" value=".pdf" name="ext">
</form>
<form name="pdf" action="pdf_prestatiebon.php" target="_blank" method="GET" style="margin-bottom:0; margin-top:10px;" accept-charset="UTF-8">
<a href="#" class="standaard" onClick="//Some javascript function JavaScript: Verstuur2(forms[0], '1');"><img src="../images/print_printer.png" border="0">Prestatiebon</a>
<input type="hidden" value="id_tic_value" name="id_tic">
<input type="hidden" value=".pdf" name="ext">
</form>
<form name="form1" action="detail.php?id=someid&id_tic=id_tic_value&submenu=submenu&nc=time&nc=time=time" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="hidden" value="somedata" name="historiekgegevens" />
<input type="hidden" value="status_value" name="status" />
<input type="hidden" value="logon_value" name="logon" />
<input type="hidden" value="value" name="TotWerkuren" />
<input type="hidden" value="product_value" name="Product" />
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr><td>Name</td><td>Value</td></tr>
<tr><td>Title</td><td><input type="text" name="title" value="TITLE"></td></tr>
<tr><td>Category:</td><td><select><option>Here I have a select type filled with data from database</option></select></td></tr>
<tr><td>Classification:</td><td><select><option>(same as above - some data from database)Here I have a select type filled with data from database</option></select></td></tr>
<tr><td>Project:</td><td><select><option>(same as above - some data from database)Here I have a select type filled with data from database</option></select></td></tr>
<tr><td>Service:</td><td><select><option>(same as above - some data from database)Here I have a select type filled with data from database</option></select></td></tr>
<tr><td>Company name:</td><td><input type="radio" name="company" value="yes">Our company&nbsp;<input type="radio" name="company" value="no">Not our company</td></tr>
<tr><td>Customer:</td><td>name of the customer</td></tr>
<tr><td>User:</td><td><select><option>Here I have a select type filled with data from database -users names</option></select></td></tr>
<tr><td>CC:</td><td><select name="cc[]" multiple="multiple" size="3"><option>Users names and email addresses</option><option>John Doe(john.doe@mail.com)</option><option>John Doe(john.doe@mail.com)</option></select></td></tr>
<tr><td>Order:</td><td><select><option>(same as above - some data from database)Here I have a select type filled with data from database</option></select></td></tr>
<tr><td>Description:</td><td>Description of the problem that need to be solved</td></tr>
<tr><td>Planned work:</td><td><input type="checkbox" name="plan">
<input type="text" value="" name="plandate">
<script language="JavaScript">
/*TIGRA CALENDAR - Not source of problem. I removed it, and problem exist.
new tcal ({
'formname': 'form1',
'controlname': 'plandate'
});*/
</script>
Start time: <select name="starthours"><option>Here is print hours from 0 to 23</option></select> : <select name="starthours"><option>Here I print minutes (0,15,30,45)</option></select>
End time: <select name="endhours"><option>Here is print hours from 0 to 23</option></select> : <select name="endhours"><option>Here I print minutes (0,15,30,45)</option></select><br/>
<select name="employees[]" multiple="multiple" size="3"><option>Users names and email addresses</option><option>John Doe(john.doe@mail.com)</option><option>John Doe(john.doe@mail.com)</option></select>
<select name="departments[]" multiple="multiple" size="3"><option>Two departments</option><option value="support@mail.com">support</option><option value="development@mail.com">development</option></select>
</td></tr>
<tr><td>Ticket owners:</td><td>
Date: <input type="text" value="" name="datuminput">
<script language="JavaScript">
/*TIGRA CALENDAR - Not source of problem. I removed it, and problem exist.
new tcal ({
'formname': 'form1',
'controlname': 'plandate'
});*/
</script>
<table>
<tr><th>Name</th><th>From (hh:mm)</th><th>To (hh:mm)</th><th>Tariffs</th><th>Total</th></tr>
<tr><th>John Doe</th><th><select><option>hours</option></select>:<select><option>minutes</option></select></th><th><select><option>hours</option></select>:<select><option>minutes</option></select></th><th><select><option>hours</option></select>:<select><option>wich department employee belong</option></select></th><th>Total hours worked on ticket</th></tr>
</table>
</td></tr>
<tr>
<td class="standaard" valign="top">Description:</td>
<td colspan="2">
<textarea id="Omschrijving" name="Omschrijving" cols="50"></textarea>
<script type="text/javascript">
CKEDITOR.replace('Omschrijving');
</script>
<span class="standaard">*</span>
</td>
</tr>
<tr>
<td class="oke8" valign="top">Internal Update(ITAF):</td>
<td colspan="2">
<textarea id="ITAF" name="ITAF" cols="50"></textarea>
<script type="text/javascript">
CKEDITOR.replace('ITAF');
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Here I load another table with history of updates inserted through ck editor -->
</td>
</tr>
</table>


解决方案:
我已经解决了这个问题。其实这是一个愚蠢的问题。我加
<!DOCTYPE html>以上 <html>它正在工作。我没有检查这个,因为我没有创建这个页面,而且没有 <!DOCTYPE html> 也可以工作。在版本 21 更新之前在 Firefox 上。

最佳答案

其实这是一个非常愚蠢的问题。页面还没有<!DOCTYPE html>我一放,它就开始正常工作了。

关于php - CKEditor 雄心勃勃的滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17026924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com