【问题标题】:Kendo UI createlink and insertimage popup modal does not show input boxKendo UI createlink和insertimage弹出模式不显示输入框
【发布时间】:2019-03-01 16:20:17
【问题描述】:

我正在使用剑道文本编辑器。在工具中,我添加了所需的自定义工具。目前,createLink 和 insertImage 工具会弹出窗口但不显示输入文本框。在检查模式下检查时,可以看到所需的 div,但由于某种原因,它们没有被渲染。

        let tools: any = [
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'createLink',
            'unlink',
            "formatting",
            "cleanFormatting",
            'fontName',
            'fontSize',
            'foreColor',
            'justifyLeft',
            'justifyCenter',
            'justifyRight'
        ];
        var data = valueAccessor();
        $(element).kendoEditor({

            resizable: {
                content: true,
                toolbar: true
            },
            change: (ev) => {
                valueAccessor()($(element).data("kendoEditor").value());
            },
            tools: tools
        });
        var editor = $(element).data("kendoEditor");
        if (data !== null) {
            editor.value(data());
        }
        const isHtmlElement = (el: any): el is HTMLElement => el.style !== undefined;

        if (isHtmlElement(editor.body)) {
            $(editor.body).addClass("k-editor-override");
       }
    }

Output

Inspect mode

【问题讨论】:

    标签: kendo-ui kendo-asp.net-mvc


    【解决方案1】:

    display: none !important 规则已在 .k-edit-label .k-edit-field .k-imagebrowser 类中设置,因为之前的要求。删除此规则为我解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-09
      • 2015-07-04
      • 2016-11-29
      • 1970-01-01
      相关资源
      最近更新 更多