|
|
|
@ -10,7 +10,8 @@ import {
|
|
|
|
|
size, |
|
|
|
|
each, |
|
|
|
|
BlankSplitChar, |
|
|
|
|
Selection |
|
|
|
|
Selection, |
|
|
|
|
PasteLimit, |
|
|
|
|
} from "@/core"; |
|
|
|
|
import { MultiSelectEditor } from "./editor.multiselect"; |
|
|
|
|
import { Searcher } from "@/base"; |
|
|
|
@ -123,7 +124,7 @@ export class MultiSelectInsertSearcher extends Widget {
|
|
|
|
|
const keywords = this.getKeywords(); |
|
|
|
|
self.fireEvent( |
|
|
|
|
MultiSelectInsertSearcher.EVENT_SEARCHING, |
|
|
|
|
keywords.length > 2000 ? keywords.slice(0, 2000).concat([BlankSplitChar]) : keywords.slice(0, 2000) |
|
|
|
|
keywords.length > PasteLimit ? keywords.slice(0, PasteLimit).concat([BlankSplitChar]) : keywords.slice(0, PasteLimit) |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
if (isNotNull(o.value)) { |
|
|
|
@ -150,7 +151,7 @@ export class MultiSelectInsertSearcher extends Widget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getKeyword() { |
|
|
|
|
let keywords = this.editor.getKeywords().slice(0, 2000); |
|
|
|
|
let keywords = this.editor.getKeywords().slice(0, PasteLimit); |
|
|
|
|
if (keywords[keywords.length - 1] === BlankSplitChar) { |
|
|
|
|
keywords = keywords.slice(0, keywords.length - 1); |
|
|
|
|
} |
|
|
|
|