实验证明:
1、修改ueditor/editor_config.js中的initialFrameWidth无效
2、修改ueditor/editor_config.js中的minFrameWidth无效
3、修改ueditor/editor_all.js或者其他几个js中的 editor = instances[id] = new UE.ui.Editor(opt); ==> editor = instances[id] = new UE.ui.Editor(“initialFrameWidth:xxx”);无效
有效的方法是:
在webroot/include/inc/inc_fun_funAdmin.php中加载ueditor的地方加一句话如下:
else if($GLOBALS["cfg_html_editor"]=="ueditor")
{
$code = <<<EOT
<SCRIPT type=text/javascript charset="utf-8" src="/include/ueditor/editor_config.js"></SCRIPT>
<SCRIPT type=text/javascript charset="utf-8" src="/include/ueditor/editor_all.js"></SCRIPT>
<SCRIPT id="$fname" type=text/plain name="$fname">$fvalue</SCRIPT>
//下面这句
<script type="text/javascript">window.UEDITOR_CONFIG.initialFrameWidth=500;</script>
<SCRIPT type=text/javascript>
var editor = UE.getEditor("$fname");
</SCRIPT>
EOT;
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}