mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-04 02:50:59 +08:00
fix: emoji fix
This commit is contained in:
@@ -3,7 +3,7 @@ import 'vditor/dist/index.css'
|
||||
import { API_BASE_URL } from '../main'
|
||||
import { getToken, authState } from './auth'
|
||||
import { searchUsers, fetchFollowings, fetchAdmins } from './user'
|
||||
import { tiebaEmoji, TIEBA_EMOJI_CDN } from './tiebaEmoji'
|
||||
import { tiebaEmoji } from './tiebaEmoji'
|
||||
|
||||
export function getEditorTheme() {
|
||||
return document.documentElement.dataset.theme === 'dark' ? 'dark' : 'classic'
|
||||
@@ -45,12 +45,9 @@ export function createVditor(editorId, options = {}) {
|
||||
theme: getEditorTheme(),
|
||||
preview: Object.assign({
|
||||
theme: { current: getPreviewTheme() },
|
||||
customEmoji: tiebaEmoji,
|
||||
emojiPath: TIEBA_EMOJI_CDN
|
||||
}, preview),
|
||||
hint: {
|
||||
emoji: tiebaEmoji,
|
||||
emojiPath: TIEBA_EMOJI_CDN,
|
||||
extend: [
|
||||
{
|
||||
key: '@',
|
||||
|
||||
Reference in New Issue
Block a user