mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 22:45:02 +00:00
Updating tributejs
This commit is contained in:
parent
876bab17eb
commit
342d226ca3
1 changed files with 5 additions and 5 deletions
10
ui/src/utils.ts
vendored
10
ui/src/utils.ts
vendored
|
@ -34,7 +34,7 @@ import {
|
||||||
} from './interfaces';
|
} from './interfaces';
|
||||||
import { UserService, WebSocketService } from './services';
|
import { UserService, WebSocketService } from './services';
|
||||||
|
|
||||||
import Tribute from 'tributejs/src/Tribute.js';
|
import Tribute from 'tributejs';
|
||||||
import markdown_it from 'markdown-it';
|
import markdown_it from 'markdown-it';
|
||||||
import markdownitEmoji from 'markdown-it-emoji/light';
|
import markdownitEmoji from 'markdown-it-emoji/light';
|
||||||
import markdown_it_container from 'markdown-it-container';
|
import markdown_it_container from 'markdown-it-container';
|
||||||
|
@ -427,7 +427,7 @@ export function toast(text: string, background: string = 'success') {
|
||||||
}).showToast();
|
}).showToast();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setupTribute(): Tribute {
|
export function setupTribute(): any {
|
||||||
return new Tribute({
|
return new Tribute({
|
||||||
collection: [
|
collection: [
|
||||||
// Emojis
|
// Emojis
|
||||||
|
@ -445,7 +445,7 @@ export function setupTribute(): Tribute {
|
||||||
}),
|
}),
|
||||||
allowSpaces: false,
|
allowSpaces: false,
|
||||||
autocompleteMode: true,
|
autocompleteMode: true,
|
||||||
menuItemLimit: mentionDropdownFetchLimit,
|
// menuItemLimit: mentionDropdownFetchLimit,
|
||||||
menuShowMinLength: 3,
|
menuShowMinLength: 3,
|
||||||
},
|
},
|
||||||
// Users
|
// Users
|
||||||
|
@ -459,7 +459,7 @@ export function setupTribute(): Tribute {
|
||||||
},
|
},
|
||||||
allowSpaces: false,
|
allowSpaces: false,
|
||||||
autocompleteMode: true,
|
autocompleteMode: true,
|
||||||
menuItemLimit: mentionDropdownFetchLimit,
|
// menuItemLimit: mentionDropdownFetchLimit,
|
||||||
menuShowMinLength: 3,
|
menuShowMinLength: 3,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ export function setupTribute(): Tribute {
|
||||||
},
|
},
|
||||||
allowSpaces: false,
|
allowSpaces: false,
|
||||||
autocompleteMode: true,
|
autocompleteMode: true,
|
||||||
menuItemLimit: mentionDropdownFetchLimit,
|
// menuItemLimit: mentionDropdownFetchLimit,
|
||||||
menuShowMinLength: 3,
|
menuShowMinLength: 3,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue