Skip to content

kissy5 editor 不能粘贴excel表格 #737

@tianzhiqing

Description

@tianzhiqing

kissy5 editor 不能粘贴excel表格 ,有办法解决吗

看了一下源码,
if (/(class="?Mso|style="[^"]*\bmso-|w:WordDocument)/.test(html)) {
require('editor/plugin/word-filter', function (wordFilter) {
editor.insertHtml(wordFilter.toDataFormat(html, editor));
});
} else {
editor.insertHtml(html);
}

是 require('editor/plugin/word-filter' 这个模块没找到,导致editor.insertHtml(wordFilter.toDataFormat(html, editor));没有执行,有什么好办法解决么?copy源码的话,是不是要把所有plugin 代码copy过去才可以呀?如果只copy editor.js 会导致所有工具条都出不来……

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions