ext htmleditor

来源:百度知道 编辑:UC知道 时间:2024/07/04 23:58:53
加载带有htmleditor元素的窗口时,会在htmleditor处闪过一个“false”字样,然后正常加载。虽然不影响程序执行,但是考虑到用户体验,还是希望能尽量避免。麻烦各位给个解决方法。

我的怎么没有啊。
是Ext3.0吗?
1.在Ext.onReady(function(){...})开头把这两句加上试试,很可能是验证得出的false。
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
2.从它那闪过不一定就是htmleditor的false,最关键的是你找不到原因啊,要不你做个测试,单有这个htmleditor看看它有问题没,然后加东西,看看是加上哪一块出错了,要不行就是Ext自己的问题了;
找不到错误?没关系,可以用其它方法——
3.你可以做个Tab,或者放到页面滚动条下面,用户刚打开这个页面的时候别让他直接看到htmleditor;
4.有一个div,在这个div的style属性里把disable设置成false,你先把乱78糟render到这个div上,等sleep()上几秒再让这个div显示。
我是Ext3的,例子是这样的,没问题的,不行的话就是你版本的问题。
Ext.onReady(function() {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
var ff = new Ext.FormPanel({
title : "文件上传",
renderTo : document.body,
width : 600,
height : 480,
labelWidth : 55,
frame : true,
items : [{
xtype : "textfield",
name : "title",
fieldLabel : "标题",
anchor : "98%"