FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 4844|回复: 3
打印 上一主题 下一主题

整合kindeditor问题

[复制链接]
跳转到指定楼层
楼主
发表于 2014-9-10 13:51:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
反馈BUG
程序版本: FineUI v4.1.3
浏览器: Chrome Firefox 
BUG截图:
BUG地址: -
按照官网上整合富文本编辑器的例子,整和kindeditor出现问题。我是ContentPanel里放kindeditor,运行页面,发现不能输入文字,需要手动全屏kindeditor再取消全屏才可以输入文字。

代码如下:




<body>
    <form id="form1" runat="server">
        <fageManager runat="server" />
        <f:ContentPanel runat="server">


            <asp:TextBox runat="server" ID="Editor" Width="725px" Height="450px" TextMode="MultiLine"
                Style="visibility: hidden;"></asp:TextBox>

            <asp:TextBox runat="server" ID="tb1" TextMode="MultiLine"></asp:TextBox>
        </f:ContentPanel>


    </form>
</body>
</html>
<link href="kindeditor/themes/default/default.css" rel="stylesheet">
<link href="kindeditor/plugins/code/prettify.css" rel="stylesheet">
<script src="kindeditor/kindeditor.js" charset="utf-8"></script>
<script src="kindeditor/lang/zh_CN.js" charset="utf-8"></script>
<script src="kindeditor/plugins/code/prettify.js" charset="utf-8"></script>
<script>
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('#<%=Editor.ClientID%>', {
            items: ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
            'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
            'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
            'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
            'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
            'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
            'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
            'anchor', 'link', 'unlink'],
            cssPath: 'kindeditor/plugins/code/prettify.css',
            uploadJson: 'kindeditor/asp.net/upload_json.ashx',
            fileManagerJson: 'kindeditor/asp.net/file_manager_json.ashx',
            allowFileManager: true,
        });
        editor.fullscreen(true);
        editor.fullscreen(false);
        editor.focus();
        prettyPrint();
    });
    function getValue() {
        // 同步数据后可以直接取得textarea的value,FineUI框架 button提交时先调用
        editor.sync();
    }
</script>




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
沙发
 楼主| 发表于 2014-9-12 10:04:10 | 只看该作者
我是不知道怎么解决,是否老大有解决方法,还望告之。
板凳
发表于 2015-1-24 20:31:18 | 只看该作者
因为extjs 加载很慢 编辑器加载完了才加载 ,这时候会失去焦点,编辑器失效,最大化后重新会重新获得焦点 请放到
Ext.onReady(function () {
}
里面执行
地板
 楼主| 发表于 2015-1-24 22:11:31 | 只看该作者
每日 发表于 2015-1-24 20:31
因为extjs 加载很慢 编辑器加载完了才加载 ,这时候会失去焦点,编辑器失效,最大化后重新会重新获得焦点  ...

谢谢 ,我自己也做出来了,用的defer 延时加载
这是我的例子:
http://fineui.com/bbs/forum.php?mod=viewthread&tid=6683
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-5-15 09:20 , Processed in 0.050733 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表