AI-News/_tmp_fix.py
2025-12-04 10:04:21 +08:00

11 lines
864 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
from pathlib import Path
path = Path('frontend/app/components/RichEditor.vue')
data = path.read_text(encoding='utf-8')
data = data.replace("import { Table } from '@tiptap/extension-table'","import Table from '@tiptap/extension-table'")
data = data.replace("import { TableRow } from '@tiptap/extension-table-row'","import TableRow from '@tiptap/extension-table-row'")
data = data.replace("import { TableHeader } from '@tiptap/extension-table-header'","import TableHeader from '@tiptap/extension-table-header'")
data = data.replace("import { TableCell } from '@tiptap/extension-table-cell'","import TableCell from '@tiptap/extension-table-cell'")
data = data.replace('请输入正文支持粘贴图片、截图、链接等<EFBFBD>?', '请输入正文,支持粘贴图片、截图、链接等内容')
path.write_text(data, encoding='utf-8')