主题: EXT.NET框架火狐不能获取焦点,不能显示赋值,也不能输入
作者: 努力 加油, 发布日期: 2011-12-24 15:06:03, 浏览数: 3608

操作系统: Windows 7
浏览器: Firefox

KindEditor版本: 4.0.4

BUG再现步骤:

我现在用的EXT.NET创建编器后不能获得焦点不能输入,也不能显示赋值,点击全屏后可以显示,在次点击全屏后,编辑器消失,IE正常显示将代码贴上,希望得到解决。

            var editor1;
            KindEditor.ready(function (K) {
                editor1 = K.create('#txtContent', {
                    allowFileManager: true
                });
            });
            var ShowHtml = function (result) {
                var params = result.extraParamsResponse || {};
                if (params.Text) {
                    editor1.html(params.Text);
                }
            }

//以上是创建编辑器和给编辑器赋值。确定值已经取到,没有问题。

 <ext:Panel ID="EditorPanel" runat="server" Region="Center">
                <Content>
                    <textarea id="txtContent" cols="100" rows="15" style="width: 100%; height: 400px;" runat="server"></textarea>
                    <input type="hidden" id="GetNodeId" runat="Server" value="" />
                    <ext:Panel ID="Panel1" Border="false" runat="server" Height="40" Layout="HBox">
                        <Items>
                            <ext:Button ID="btnSubmit" Margins="10 50 0 50" runat="server" Icon="PageSave" Text="保存">
                                <DirectEvents>
                                    <Click OnEvent="btnSubmit_Click" Success="ShowBox(result)">
                                        <EventMask ShowMask="true" />
                                        <ExtraParams>
                                            <ext:Parameter Name="cv" Value="editor1.html()" Mode="Raw" />
                                        </ExtraParams>
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:Button ID="btnReset" Margins="10 0 0 0" runat="server" Icon="PageRefresh" Text="清空">
                                <Listeners>
                                    <Click Handler="editor1.html('');" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Panel>
                </Content>
            </ext:Panel>

//这是<textarea>和EXT.NET结合使用。

期望结果:
能够在火狐中获得焦点显示赋值,输入,顺便问一下,哪个版本没有这个BUG,目前急用编辑器。谢谢。

发表新帖 发表回复