今天碰见个奇怪事 装了个fckeditor后,打开一看,在文本输入框($oFCKeditor->Create();)内,光标只有下部分,输入文字后光标恢复正常,在这种情况下,我接收值试了试,正文的内容($oFCKeditor=new FCKeditor('FCKeditor1');)是接收不到的,var_dump打出来string(0),其他的OK,刷新一次后光标恢复正常,但是输入2个中文后用var_dump打出来却是string(13) "网站"
这个样子,我的页面都是utf-8的编码 ,看了看页面也没发现哪有多余的空格,求解?
这个样子,我的页面都是utf-8的编码 ,看了看页面也没发现哪有多余的空格,求解?
include '../editor/fckeditor.php';
$oFCKeditor=new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath="../editor/";
$oFCKeditor->Width='800';
$oFCKeditor->Height='350';
?>
<form action='./ok.php' method='post'>
<table>
<tr><td>标 题td><td><input type='text' name='diarytitle' size='50'/></td></tr>
<tr><td>类 型</td><td>
<select name="diarytype">
<?php
require_once '../model/diaryService.php';
$diaryService=new DiaryService();
$res=$diaryService->getdiarytype();
for ($i=0;$i<count($res);$i++){
$row=$res[$i];
echo "<option value='{$row['type']}'>{$row['type']}</option>";
}
?>
</select></td></tr>
<tr><td>正 文td><td><?php $oFCKeditor->Create(); ?></td></tr>
<tr><td colspan="2"><input type="submit" value=" 发表 "/></td></tr>
</table>
</form>