poro-editor 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +10 -0
- package/dist/i18n/en.d.ts +157 -0
- package/dist/i18n/index.d.ts +11 -0
- package/dist/i18n/ja.d.ts +157 -0
- package/dist/i18n/zh.d.ts +157 -0
- package/dist/poro-editor.css +1 -1
- package/dist/poro-editor.js +10997 -10840
- package/dist/poro-editor.js.map +1 -1
- package/dist/poro-editor.umd.cjs +127 -127
- package/dist/poro-editor.umd.cjs.map +1 -1
- package/dist/{EmojiPicker.d.ts → ui/emoji/EmojiPicker.d.ts} +2 -1
- package/dist/{ImageMenu.d.ts → ui/image/ImageMenu.d.ts} +2 -1
- package/dist/{AlignMenu.d.ts → ui/menubar/AlignMenu.d.ts} +2 -1
- package/dist/{FontSizeSelector.d.ts → ui/menubar/FontSizeSelector.d.ts} +2 -1
- package/dist/{HeadingSelector.d.ts → ui/menubar/HeadingSelector.d.ts} +2 -1
- package/dist/{LinkButton.d.ts → ui/menubar/LinkButton.d.ts} +2 -1
- package/dist/{HtmlPreview.d.ts → ui/source/HtmlPreview.d.ts} +2 -1
- package/dist/{SourceCodeViewer.d.ts → ui/source/SourceCodeViewer.d.ts} +2 -1
- package/dist/{TableMenu.d.ts → ui/table/TableMenu.d.ts} +2 -1
- package/dist/{VariableNodeView.d.ts → ui/variable/VariableNodeView.d.ts} +2 -1
- package/dist/{VariablePanel.d.ts → ui/variable/VariablePanel.d.ts} +2 -1
- package/package.json +2 -1
- package/dist/locales/index.d.ts +0 -452
- /package/dist/{BubbleMenuContent.d.ts → ui/bubble-menu/BubbleMenuContent.d.ts} +0 -0
- /package/dist/{CharCount.d.ts → ui/char-count/CharCount.d.ts} +0 -0
- /package/dist/{ColorPickerButton.d.ts → ui/common/ColorPickerButton.d.ts} +0 -0
- /package/dist/{Icon.d.ts → ui/common/Icon.d.ts} +0 -0
- /package/dist/{MenuButton.d.ts → ui/common/MenuButton.d.ts} +0 -0
- /package/dist/{FloatingMenuContent.d.ts → ui/floating-menu/FloatingMenuContent.d.ts} +0 -0
- /package/dist/{CustomImage.d.ts → ui/image/CustomImage.d.ts} +0 -0
- /package/dist/{ImagePaste.d.ts → ui/image/ImagePaste.d.ts} +0 -0
- /package/dist/{ImagePlaceholder.d.ts → ui/image/ImagePlaceholder.d.ts} +0 -0
- /package/dist/{ImageToolbar.d.ts → ui/image/ImageToolbar.d.ts} +0 -0
- /package/dist/{ImageView.d.ts → ui/image/ImageView.d.ts} +0 -0
- /package/dist/{imageUpload.d.ts → ui/image/imageUpload.d.ts} +0 -0
- /package/dist/{MenuBar.d.ts → ui/menubar/MenuBar.d.ts} +0 -0
- /package/dist/{OutlineExtension.d.ts → ui/outline/OutlineExtension.d.ts} +0 -0
- /package/dist/{OutlineNodeView.d.ts → ui/outline/OutlineNodeView.d.ts} +0 -0
- /package/dist/{TableBubbleMenu.d.ts → ui/table/TableBubbleMenu.d.ts} +0 -0
- /package/dist/{VariableExtension.d.ts → ui/variable/VariableExtension.d.ts} +0 -0
package/dist/config.d.ts
CHANGED
|
@@ -17,6 +17,15 @@ export namespace DEFAULT_UPLOAD_CONFIG {
|
|
|
17
17
|
let customUploader: null;
|
|
18
18
|
}
|
|
19
19
|
export const DEFAULT_EXPORT_FORMATS: string[];
|
|
20
|
+
export const DEFAULT_VARIABLES: {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
export namespace DEFAULT_VARIABLE_CONFIG {
|
|
25
|
+
export { DEFAULT_VARIABLES as items };
|
|
26
|
+
export let prefix: string;
|
|
27
|
+
export let suffix: string;
|
|
28
|
+
}
|
|
20
29
|
export namespace DEFAULT_CONFIG {
|
|
21
30
|
export { MENU_BAR_ITEMS as menuBar };
|
|
22
31
|
export { BUBBLE_MENU_ITEMS as bubbleMenu };
|
|
@@ -28,4 +37,5 @@ export namespace DEFAULT_CONFIG {
|
|
|
28
37
|
export let maxLength: null;
|
|
29
38
|
export let showCharCount: boolean;
|
|
30
39
|
export let readonly: boolean;
|
|
40
|
+
export { DEFAULT_VARIABLE_CONFIG as variables };
|
|
31
41
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export namespace toolbar {
|
|
3
|
+
let undo: string;
|
|
4
|
+
let redo: string;
|
|
5
|
+
let bold: string;
|
|
6
|
+
let italic: string;
|
|
7
|
+
let underline: string;
|
|
8
|
+
let strike: string;
|
|
9
|
+
let code: string;
|
|
10
|
+
let heading: string;
|
|
11
|
+
let heading1: string;
|
|
12
|
+
let heading2: string;
|
|
13
|
+
let heading3: string;
|
|
14
|
+
let heading4: string;
|
|
15
|
+
let heading5: string;
|
|
16
|
+
let heading6: string;
|
|
17
|
+
let paragraph: string;
|
|
18
|
+
let fontSize: string;
|
|
19
|
+
let textColor: string;
|
|
20
|
+
let bgColor: string;
|
|
21
|
+
let bulletList: string;
|
|
22
|
+
let orderedList: string;
|
|
23
|
+
let codeBlock: string;
|
|
24
|
+
let blockquote: string;
|
|
25
|
+
let link: string;
|
|
26
|
+
let horizontalRule: string;
|
|
27
|
+
let align: string;
|
|
28
|
+
let alignLeft: string;
|
|
29
|
+
let alignCenter: string;
|
|
30
|
+
let alignRight: string;
|
|
31
|
+
let alignJustify: string;
|
|
32
|
+
let image: string;
|
|
33
|
+
let table: string;
|
|
34
|
+
let hardBreak: string;
|
|
35
|
+
let variable: string;
|
|
36
|
+
let outline: string;
|
|
37
|
+
let sourceCode: string;
|
|
38
|
+
let htmlPreview: string;
|
|
39
|
+
let clearFormat: string;
|
|
40
|
+
let emoji: string;
|
|
41
|
+
}
|
|
42
|
+
export namespace image_1 {
|
|
43
|
+
export let upload: string;
|
|
44
|
+
export let url: string;
|
|
45
|
+
export let uploadPlaceholder: string;
|
|
46
|
+
export let uploadHint: string;
|
|
47
|
+
export let urlPlaceholder: string;
|
|
48
|
+
export let insert: string;
|
|
49
|
+
export let width: string;
|
|
50
|
+
export let small: string;
|
|
51
|
+
export let medium: string;
|
|
52
|
+
export let large: string;
|
|
53
|
+
export let auto: string;
|
|
54
|
+
let align_1: string;
|
|
55
|
+
export { align_1 as align };
|
|
56
|
+
export let float: string;
|
|
57
|
+
export let floatLeft: string;
|
|
58
|
+
export let floatRight: string;
|
|
59
|
+
export let customSize: string;
|
|
60
|
+
export let altText: string;
|
|
61
|
+
export let altPlaceholder: string;
|
|
62
|
+
let _delete: string;
|
|
63
|
+
export { _delete as delete };
|
|
64
|
+
export let retry: string;
|
|
65
|
+
export let uploading: string;
|
|
66
|
+
export let uploadFailed: string;
|
|
67
|
+
}
|
|
68
|
+
export { image_1 as image };
|
|
69
|
+
export namespace table_1 {
|
|
70
|
+
let insertTable: string;
|
|
71
|
+
let insertRowAbove: string;
|
|
72
|
+
let insertRowBelow: string;
|
|
73
|
+
let insertColLeft: string;
|
|
74
|
+
let insertColRight: string;
|
|
75
|
+
let deleteRow: string;
|
|
76
|
+
let deleteCol: string;
|
|
77
|
+
let mergeCells: string;
|
|
78
|
+
let splitCell: string;
|
|
79
|
+
let toggleHeader: string;
|
|
80
|
+
let appendRow: string;
|
|
81
|
+
let deleteTable: string;
|
|
82
|
+
let rows: string;
|
|
83
|
+
let cols: string;
|
|
84
|
+
}
|
|
85
|
+
export { table_1 as table };
|
|
86
|
+
export namespace link_1 {
|
|
87
|
+
export let title: string;
|
|
88
|
+
export let placeholder: string;
|
|
89
|
+
let insert_1: string;
|
|
90
|
+
export { insert_1 as insert };
|
|
91
|
+
export let remove: string;
|
|
92
|
+
}
|
|
93
|
+
export { link_1 as link };
|
|
94
|
+
export namespace sourceCode_1 {
|
|
95
|
+
let title_1: string;
|
|
96
|
+
export { title_1 as title };
|
|
97
|
+
export let html: string;
|
|
98
|
+
export let json: string;
|
|
99
|
+
export let markdown: string;
|
|
100
|
+
export let text: string;
|
|
101
|
+
}
|
|
102
|
+
export { sourceCode_1 as sourceCode };
|
|
103
|
+
export namespace htmlPreview_1 {
|
|
104
|
+
let title_2: string;
|
|
105
|
+
export { title_2 as title };
|
|
106
|
+
}
|
|
107
|
+
export { htmlPreview_1 as htmlPreview };
|
|
108
|
+
export namespace variable_1 {
|
|
109
|
+
let title_3: string;
|
|
110
|
+
export { title_3 as title };
|
|
111
|
+
export let avatar: string;
|
|
112
|
+
export let nickname: string;
|
|
113
|
+
export let email: string;
|
|
114
|
+
export let phone: string;
|
|
115
|
+
export let date: string;
|
|
116
|
+
export let time: string;
|
|
117
|
+
}
|
|
118
|
+
export { variable_1 as variable };
|
|
119
|
+
export namespace outline_1 {
|
|
120
|
+
let title_4: string;
|
|
121
|
+
export { title_4 as title };
|
|
122
|
+
export let empty: string;
|
|
123
|
+
let _delete_1: string;
|
|
124
|
+
export { _delete_1 as delete };
|
|
125
|
+
}
|
|
126
|
+
export { outline_1 as outline };
|
|
127
|
+
export namespace charCount {
|
|
128
|
+
let exceeded: string;
|
|
129
|
+
}
|
|
130
|
+
export namespace emoji_1 {
|
|
131
|
+
let grouped: string;
|
|
132
|
+
let classic: string;
|
|
133
|
+
namespace categories {
|
|
134
|
+
export let common: string;
|
|
135
|
+
export let promotion: string;
|
|
136
|
+
export let ranking: string;
|
|
137
|
+
export let entertainment: string;
|
|
138
|
+
export let system: string;
|
|
139
|
+
export let info: string;
|
|
140
|
+
let time_1: string;
|
|
141
|
+
export { time_1 as time };
|
|
142
|
+
export let mood: string;
|
|
143
|
+
export let decoration: string;
|
|
144
|
+
export let structure: string;
|
|
145
|
+
export let backup: string;
|
|
146
|
+
export let faces: string;
|
|
147
|
+
export let gestures: string;
|
|
148
|
+
export let animals: string;
|
|
149
|
+
export let food: string;
|
|
150
|
+
export let nature: string;
|
|
151
|
+
export let objects: string;
|
|
152
|
+
export let symbols: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export { emoji_1 as emoji };
|
|
156
|
+
}
|
|
157
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as zh } from './zh';
|
|
2
|
+
import { default as en } from './en';
|
|
3
|
+
import { default as ja } from './ja';
|
|
4
|
+
export namespace translations {
|
|
5
|
+
export { zh };
|
|
6
|
+
export { en };
|
|
7
|
+
export { ja };
|
|
8
|
+
}
|
|
9
|
+
export function detectLanguage(): "zh" | "ja" | "en";
|
|
10
|
+
export function getTranslation(locale: any): any;
|
|
11
|
+
export { zh, en, ja };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export namespace toolbar {
|
|
3
|
+
let undo: string;
|
|
4
|
+
let redo: string;
|
|
5
|
+
let bold: string;
|
|
6
|
+
let italic: string;
|
|
7
|
+
let underline: string;
|
|
8
|
+
let strike: string;
|
|
9
|
+
let code: string;
|
|
10
|
+
let heading: string;
|
|
11
|
+
let heading1: string;
|
|
12
|
+
let heading2: string;
|
|
13
|
+
let heading3: string;
|
|
14
|
+
let heading4: string;
|
|
15
|
+
let heading5: string;
|
|
16
|
+
let heading6: string;
|
|
17
|
+
let paragraph: string;
|
|
18
|
+
let fontSize: string;
|
|
19
|
+
let textColor: string;
|
|
20
|
+
let bgColor: string;
|
|
21
|
+
let bulletList: string;
|
|
22
|
+
let orderedList: string;
|
|
23
|
+
let codeBlock: string;
|
|
24
|
+
let blockquote: string;
|
|
25
|
+
let link: string;
|
|
26
|
+
let horizontalRule: string;
|
|
27
|
+
let align: string;
|
|
28
|
+
let alignLeft: string;
|
|
29
|
+
let alignCenter: string;
|
|
30
|
+
let alignRight: string;
|
|
31
|
+
let alignJustify: string;
|
|
32
|
+
let image: string;
|
|
33
|
+
let table: string;
|
|
34
|
+
let hardBreak: string;
|
|
35
|
+
let variable: string;
|
|
36
|
+
let outline: string;
|
|
37
|
+
let sourceCode: string;
|
|
38
|
+
let htmlPreview: string;
|
|
39
|
+
let clearFormat: string;
|
|
40
|
+
let emoji: string;
|
|
41
|
+
}
|
|
42
|
+
export namespace image_1 {
|
|
43
|
+
export let upload: string;
|
|
44
|
+
export let url: string;
|
|
45
|
+
export let uploadPlaceholder: string;
|
|
46
|
+
export let uploadHint: string;
|
|
47
|
+
export let urlPlaceholder: string;
|
|
48
|
+
export let insert: string;
|
|
49
|
+
export let width: string;
|
|
50
|
+
export let small: string;
|
|
51
|
+
export let medium: string;
|
|
52
|
+
export let large: string;
|
|
53
|
+
export let auto: string;
|
|
54
|
+
let align_1: string;
|
|
55
|
+
export { align_1 as align };
|
|
56
|
+
export let float: string;
|
|
57
|
+
export let floatLeft: string;
|
|
58
|
+
export let floatRight: string;
|
|
59
|
+
export let customSize: string;
|
|
60
|
+
export let altText: string;
|
|
61
|
+
export let altPlaceholder: string;
|
|
62
|
+
let _delete: string;
|
|
63
|
+
export { _delete as delete };
|
|
64
|
+
export let retry: string;
|
|
65
|
+
export let uploading: string;
|
|
66
|
+
export let uploadFailed: string;
|
|
67
|
+
}
|
|
68
|
+
export { image_1 as image };
|
|
69
|
+
export namespace table_1 {
|
|
70
|
+
let insertTable: string;
|
|
71
|
+
let insertRowAbove: string;
|
|
72
|
+
let insertRowBelow: string;
|
|
73
|
+
let insertColLeft: string;
|
|
74
|
+
let insertColRight: string;
|
|
75
|
+
let deleteRow: string;
|
|
76
|
+
let deleteCol: string;
|
|
77
|
+
let mergeCells: string;
|
|
78
|
+
let splitCell: string;
|
|
79
|
+
let toggleHeader: string;
|
|
80
|
+
let appendRow: string;
|
|
81
|
+
let deleteTable: string;
|
|
82
|
+
let rows: string;
|
|
83
|
+
let cols: string;
|
|
84
|
+
}
|
|
85
|
+
export { table_1 as table };
|
|
86
|
+
export namespace link_1 {
|
|
87
|
+
export let title: string;
|
|
88
|
+
export let placeholder: string;
|
|
89
|
+
let insert_1: string;
|
|
90
|
+
export { insert_1 as insert };
|
|
91
|
+
export let remove: string;
|
|
92
|
+
}
|
|
93
|
+
export { link_1 as link };
|
|
94
|
+
export namespace sourceCode_1 {
|
|
95
|
+
let title_1: string;
|
|
96
|
+
export { title_1 as title };
|
|
97
|
+
export let html: string;
|
|
98
|
+
export let json: string;
|
|
99
|
+
export let markdown: string;
|
|
100
|
+
export let text: string;
|
|
101
|
+
}
|
|
102
|
+
export { sourceCode_1 as sourceCode };
|
|
103
|
+
export namespace htmlPreview_1 {
|
|
104
|
+
let title_2: string;
|
|
105
|
+
export { title_2 as title };
|
|
106
|
+
}
|
|
107
|
+
export { htmlPreview_1 as htmlPreview };
|
|
108
|
+
export namespace variable_1 {
|
|
109
|
+
let title_3: string;
|
|
110
|
+
export { title_3 as title };
|
|
111
|
+
export let avatar: string;
|
|
112
|
+
export let nickname: string;
|
|
113
|
+
export let email: string;
|
|
114
|
+
export let phone: string;
|
|
115
|
+
export let date: string;
|
|
116
|
+
export let time: string;
|
|
117
|
+
}
|
|
118
|
+
export { variable_1 as variable };
|
|
119
|
+
export namespace outline_1 {
|
|
120
|
+
let title_4: string;
|
|
121
|
+
export { title_4 as title };
|
|
122
|
+
export let empty: string;
|
|
123
|
+
let _delete_1: string;
|
|
124
|
+
export { _delete_1 as delete };
|
|
125
|
+
}
|
|
126
|
+
export { outline_1 as outline };
|
|
127
|
+
export namespace charCount {
|
|
128
|
+
let exceeded: string;
|
|
129
|
+
}
|
|
130
|
+
export namespace emoji_1 {
|
|
131
|
+
let grouped: string;
|
|
132
|
+
let classic: string;
|
|
133
|
+
namespace categories {
|
|
134
|
+
export let common: string;
|
|
135
|
+
export let promotion: string;
|
|
136
|
+
export let ranking: string;
|
|
137
|
+
export let entertainment: string;
|
|
138
|
+
export let system: string;
|
|
139
|
+
export let info: string;
|
|
140
|
+
let time_1: string;
|
|
141
|
+
export { time_1 as time };
|
|
142
|
+
export let mood: string;
|
|
143
|
+
export let decoration: string;
|
|
144
|
+
export let structure: string;
|
|
145
|
+
export let backup: string;
|
|
146
|
+
export let faces: string;
|
|
147
|
+
export let gestures: string;
|
|
148
|
+
export let animals: string;
|
|
149
|
+
export let food: string;
|
|
150
|
+
export let nature: string;
|
|
151
|
+
export let objects: string;
|
|
152
|
+
export let symbols: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export { emoji_1 as emoji };
|
|
156
|
+
}
|
|
157
|
+
export default _default;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export namespace toolbar {
|
|
3
|
+
let undo: string;
|
|
4
|
+
let redo: string;
|
|
5
|
+
let bold: string;
|
|
6
|
+
let italic: string;
|
|
7
|
+
let underline: string;
|
|
8
|
+
let strike: string;
|
|
9
|
+
let code: string;
|
|
10
|
+
let heading: string;
|
|
11
|
+
let heading1: string;
|
|
12
|
+
let heading2: string;
|
|
13
|
+
let heading3: string;
|
|
14
|
+
let heading4: string;
|
|
15
|
+
let heading5: string;
|
|
16
|
+
let heading6: string;
|
|
17
|
+
let paragraph: string;
|
|
18
|
+
let fontSize: string;
|
|
19
|
+
let textColor: string;
|
|
20
|
+
let bgColor: string;
|
|
21
|
+
let bulletList: string;
|
|
22
|
+
let orderedList: string;
|
|
23
|
+
let codeBlock: string;
|
|
24
|
+
let blockquote: string;
|
|
25
|
+
let link: string;
|
|
26
|
+
let horizontalRule: string;
|
|
27
|
+
let align: string;
|
|
28
|
+
let alignLeft: string;
|
|
29
|
+
let alignCenter: string;
|
|
30
|
+
let alignRight: string;
|
|
31
|
+
let alignJustify: string;
|
|
32
|
+
let image: string;
|
|
33
|
+
let table: string;
|
|
34
|
+
let hardBreak: string;
|
|
35
|
+
let variable: string;
|
|
36
|
+
let outline: string;
|
|
37
|
+
let sourceCode: string;
|
|
38
|
+
let htmlPreview: string;
|
|
39
|
+
let clearFormat: string;
|
|
40
|
+
let emoji: string;
|
|
41
|
+
}
|
|
42
|
+
export namespace image_1 {
|
|
43
|
+
export let upload: string;
|
|
44
|
+
export let url: string;
|
|
45
|
+
export let uploadPlaceholder: string;
|
|
46
|
+
export let uploadHint: string;
|
|
47
|
+
export let urlPlaceholder: string;
|
|
48
|
+
export let insert: string;
|
|
49
|
+
export let width: string;
|
|
50
|
+
export let small: string;
|
|
51
|
+
export let medium: string;
|
|
52
|
+
export let large: string;
|
|
53
|
+
export let auto: string;
|
|
54
|
+
let align_1: string;
|
|
55
|
+
export { align_1 as align };
|
|
56
|
+
export let float: string;
|
|
57
|
+
export let floatLeft: string;
|
|
58
|
+
export let floatRight: string;
|
|
59
|
+
export let customSize: string;
|
|
60
|
+
export let altText: string;
|
|
61
|
+
export let altPlaceholder: string;
|
|
62
|
+
let _delete: string;
|
|
63
|
+
export { _delete as delete };
|
|
64
|
+
export let retry: string;
|
|
65
|
+
export let uploading: string;
|
|
66
|
+
export let uploadFailed: string;
|
|
67
|
+
}
|
|
68
|
+
export { image_1 as image };
|
|
69
|
+
export namespace table_1 {
|
|
70
|
+
let insertTable: string;
|
|
71
|
+
let insertRowAbove: string;
|
|
72
|
+
let insertRowBelow: string;
|
|
73
|
+
let insertColLeft: string;
|
|
74
|
+
let insertColRight: string;
|
|
75
|
+
let deleteRow: string;
|
|
76
|
+
let deleteCol: string;
|
|
77
|
+
let mergeCells: string;
|
|
78
|
+
let splitCell: string;
|
|
79
|
+
let toggleHeader: string;
|
|
80
|
+
let appendRow: string;
|
|
81
|
+
let deleteTable: string;
|
|
82
|
+
let rows: string;
|
|
83
|
+
let cols: string;
|
|
84
|
+
}
|
|
85
|
+
export { table_1 as table };
|
|
86
|
+
export namespace link_1 {
|
|
87
|
+
export let title: string;
|
|
88
|
+
export let placeholder: string;
|
|
89
|
+
let insert_1: string;
|
|
90
|
+
export { insert_1 as insert };
|
|
91
|
+
export let remove: string;
|
|
92
|
+
}
|
|
93
|
+
export { link_1 as link };
|
|
94
|
+
export namespace sourceCode_1 {
|
|
95
|
+
let title_1: string;
|
|
96
|
+
export { title_1 as title };
|
|
97
|
+
export let html: string;
|
|
98
|
+
export let json: string;
|
|
99
|
+
export let markdown: string;
|
|
100
|
+
export let text: string;
|
|
101
|
+
}
|
|
102
|
+
export { sourceCode_1 as sourceCode };
|
|
103
|
+
export namespace htmlPreview_1 {
|
|
104
|
+
let title_2: string;
|
|
105
|
+
export { title_2 as title };
|
|
106
|
+
}
|
|
107
|
+
export { htmlPreview_1 as htmlPreview };
|
|
108
|
+
export namespace variable_1 {
|
|
109
|
+
let title_3: string;
|
|
110
|
+
export { title_3 as title };
|
|
111
|
+
export let avatar: string;
|
|
112
|
+
export let nickname: string;
|
|
113
|
+
export let email: string;
|
|
114
|
+
export let phone: string;
|
|
115
|
+
export let date: string;
|
|
116
|
+
export let time: string;
|
|
117
|
+
}
|
|
118
|
+
export { variable_1 as variable };
|
|
119
|
+
export namespace outline_1 {
|
|
120
|
+
let title_4: string;
|
|
121
|
+
export { title_4 as title };
|
|
122
|
+
export let empty: string;
|
|
123
|
+
let _delete_1: string;
|
|
124
|
+
export { _delete_1 as delete };
|
|
125
|
+
}
|
|
126
|
+
export { outline_1 as outline };
|
|
127
|
+
export namespace charCount {
|
|
128
|
+
let exceeded: string;
|
|
129
|
+
}
|
|
130
|
+
export namespace emoji_1 {
|
|
131
|
+
let grouped: string;
|
|
132
|
+
let classic: string;
|
|
133
|
+
namespace categories {
|
|
134
|
+
export let common: string;
|
|
135
|
+
export let promotion: string;
|
|
136
|
+
export let ranking: string;
|
|
137
|
+
export let entertainment: string;
|
|
138
|
+
export let system: string;
|
|
139
|
+
export let info: string;
|
|
140
|
+
let time_1: string;
|
|
141
|
+
export { time_1 as time };
|
|
142
|
+
export let mood: string;
|
|
143
|
+
export let decoration: string;
|
|
144
|
+
export let structure: string;
|
|
145
|
+
export let backup: string;
|
|
146
|
+
export let faces: string;
|
|
147
|
+
export let gestures: string;
|
|
148
|
+
export let animals: string;
|
|
149
|
+
export let food: string;
|
|
150
|
+
export let nature: string;
|
|
151
|
+
export let objects: string;
|
|
152
|
+
export let symbols: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export { emoji_1 as emoji };
|
|
156
|
+
}
|
|
157
|
+
export default _default;
|
package/dist/poro-editor.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nice-editor{border:1px solid var(--editor-border);background:var(--editor-bg);position:relative;color:var(--editor-text)}.nice-editor.readonly{background:var(--code-bg)}.nice-editor.readonly .nice{cursor:default;-webkit-user-select:text;user-select:text}.nice-editor .control-group{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--toolbar-border);background:var(--toolbar-bg)}.nice-editor .button-group{display:flex;flex-wrap:wrap;gap:4px}.nice-editor .button-group button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--toolbar-btn-color);transition:all .2s;white-space:nowrap}.nice-editor .button-group button:hover:not(:disabled){background:var(--toolbar-btn-hover-bg);color:var(--toolbar-btn-active-color)}.nice-editor .button-group button:disabled{opacity:.4;cursor:not-allowed}.nice-editor .button-group button.is-active{background:var(--toolbar-btn-active-bg)!important;border-color:var(--toolbar-btn-active-color)!important;color:var(--toolbar-btn-active-color)}.nice{padding:16px;min-height:300px;max-height:600px;overflow-y:auto;color:var(--editor-text)}.nice :first-child{margin-top:0}.nice>*+*{margin-top:.75em}.nice ul,.nice ol{padding:0 1rem;margin:1.25rem 1rem 1.25rem .4rem}.nice ul li p,.nice ol li p{margin-top:.25em;margin-bottom:.25em}.nice h1,.nice h2,.nice h3,.nice h4,.nice h5,.nice h6{line-height:1.1;margin-top:2.5rem;text-wrap:pretty}.nice h1,.nice h2{margin-top:3.5rem;margin-bottom:1.5rem}.nice h1{font-size:1.4rem}.nice h2{font-size:1.2rem}.nice h3{font-size:1.1rem}.nice h4,.nice h5,.nice h6{font-size:1rem}.nice code{background-color:var(--code-bg);border-radius:.4rem;color:var(--code-text);font-size:.85rem;padding:.25em .3em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.nice pre{background:#282c34;border-radius:.5rem;color:#abb2bf;font-family:JetBrainsMono,SFMono-Regular,monospace;margin:1.5rem 0;padding:.75rem 1rem}.nice pre code{background:none;color:inherit;font-size:.8rem;padding:0}.nice blockquote{border-left:3px solid var(--blockquote-border);margin:1.5rem 0;padding-left:1rem;color:var(--editor-text-secondary);background:var(--blockquote-bg)}.nice hr{border:none;border-top:1px solid var(--editor-border);margin:2rem 0}.nice p.is-editor-empty:first-child:before{color:var(--placeholder-color);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.nice .ProseMirror-selectednode,.nice .ProseMirror-selectednode *{color:var(--editor-text)!important}.floating-menu{display:flex;gap:2px;padding:4px;background:var(--floating-bg);border-radius:6px;box-shadow:var(--popup-shadow);border:1px solid var(--floating-border);margin-top:1em}.floating-menu button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--floating-text);transition:all .2s}.floating-menu button:hover{background:var(--floating-hover-bg)}.floating-menu button.is-active{background:var(--floating-active-bg)!important}.bubble-menu{display:flex;gap:2px;padding:4px;background:var(--bubble-bg);border-radius:6px;box-shadow:var(--popup-shadow)}.bubble-menu button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .2s;color:var(--bubble-text)}.bubble-menu button:hover{background:var(--bubble-hover-bg)}.bubble-menu button.is-active{background:var(--bubble-active-bg)!important}.nice-editor .outline-node{background:var(--popup-bg);border:1px solid var(--popup-border);border-radius:8px;padding:16px;margin:16px 0;color:var(--popup-text)}.nice-editor .outline-node.ProseMirror-selectednode{outline:2px solid var(--focus-ring);outline-offset:2px}.nice-editor .outline-node-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--popup-border)}.nice-editor .outline-node-title{font-weight:600;font-size:14px;color:var(--popup-text)}.nice-editor .outline-node-delete{width:20px;height:20px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--popup-text-secondary);cursor:pointer;font-size:16px;line-height:1;transition:all .2s}.nice-editor .outline-node-delete:hover{background:#ff4d4f;color:#fff}.nice-editor .outline-node-empty{color:var(--popup-text-secondary);font-size:13px;text-align:center;padding:12px}.nice-editor .outline-node-list{list-style:none;padding:0;margin:0;overflow-y:auto}.nice-editor .outline-node-item{padding:0;margin:0;font-size:13px;border-radius:4px;transition:all .2s}.nice-editor .outline-node-link{display:block;padding:6px 8px;color:var(--popup-text-secondary);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border-radius:4px}.nice-editor .outline-node-link:hover{background:var(--popup-hover-bg);color:var(--focus-ring)}.nice-editor .outline-node-level-1 .outline-node-link{padding-left:8px;font-weight:500}.nice-editor .outline-node-level-2 .outline-node-link{padding-left:20px}.nice-editor .outline-node-level-3 .outline-node-link{padding-left:32px;font-size:12px}.nice-editor .outline-node-level-4 .outline-node-link{padding-left:44px;font-size:12px}.nice-editor .outline-node-level-5 .outline-node-link{padding-left:56px;font-size:12px;color:var(--popup-text-secondary)}.nice-editor .outline-node-level-6 .outline-node-link{padding-left:68px;font-size:12px;color:var(--popup-text-secondary)}.variable-node-wrapper{display:inline}.variable-node-content{display:inline-flex;align-items:center;padding:0 6px;background:linear-gradient(135deg,#c5c5c5,#bab9bb);color:#fff;border-radius:4px;font-size:.8em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;cursor:default;-webkit-user-select:none;user-select:none;transition:all .2s}.variable-node-content:hover{box-shadow:0 2px 8px #667eea66}.ProseMirror-selectednode .variable-node-content{outline:2px solid var(--focus-ring);outline-offset:2px}.variable-panel{min-width:200px;max-width:300px}.variable-panel-title{font-weight:600;font-size:14px;color:var(--popup-text);padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--popup-border)}.variable-panel-list{display:flex;flex-direction:column;gap:4px}.variable-panel-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all .2s}.variable-panel-item:hover{background:var(--popup-hover-bg)}.variable-panel-item-label{flex:1;font-size:14px;color:var(--popup-text)}.variable-panel-item-id{font-size:12px;color:var(--popup-text-secondary);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.variable-panel-popover{z-index:9999!important}.variable-panel-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.variable-panel-popover.ant-popover .ant-popover-inner{background:var(--popup-bg)!important;border-radius:8px!important;box-shadow:var(--popup-shadow)!important;border:1px solid var(--popup-border)!important}.variable-panel-popover .ant-popover-arrow{display:none!important}.variable-panel-popover .ant-popover-inner-content,.variable-panel-popover .variable-panel{background:var(--popup-bg)!important}.variable-panel-popover .variable-panel-title{color:var(--popup-text)!important;border-bottom-color:var(--popup-border)!important}.variable-panel-popover .variable-panel-item-label{color:var(--popup-text)!important}.variable-panel-popover .variable-panel-item-id{color:var(--popup-text-secondary)!important}.source-code-modal .ant-modal-body{padding:16px}.source-code-content{background:var(--code-bg);border:1px solid var(--popup-border);border-radius:6px;padding:16px;margin:0;max-height:500px;overflow:auto;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:13px;line-height:1.6;color:var(--popup-text);white-space:pre-wrap;word-wrap:break-word}.html-preview-modal .ant-modal-body{padding:16px}.html-preview-container{background:var(--editor-bg);border:1px solid var(--popup-border);border-radius:8px;min-height:400px;max-height:600px;overflow:auto}.html-preview-content{padding:20px;line-height:1.6;color:var(--editor-text)}.html-preview-content h1,.html-preview-content h2,.html-preview-content h3,.html-preview-content h4,.html-preview-content h5,.html-preview-content h6{margin-top:1.5em;margin-bottom:.5em;line-height:1.3}.html-preview-content h1{font-size:2em;border-bottom:1px solid var(--editor-border);padding-bottom:.3em}.html-preview-content h2{font-size:1.5em;border-bottom:1px solid var(--editor-border);padding-bottom:.3em}.html-preview-content h3{font-size:1.25em}.html-preview-content p{margin:1em 0}.html-preview-content ul,.html-preview-content ol{padding-left:2em;margin:1em 0}.html-preview-content blockquote{border-left:4px solid var(--blockquote-border);padding-left:1em;margin:1em 0;color:var(--editor-text-secondary)}.html-preview-content code{background:var(--code-bg);padding:.2em .4em;border-radius:3px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em}.html-preview-content pre{background:#f6f8fa;border:1px solid var(--popup-border);border-radius:6px;padding:16px;overflow-x:auto;margin:1em 0}.html-preview-content pre code{background:none;padding:0}.html-preview-content hr{border:none;border-top:1px solid var(--editor-border);margin:2em 0}.html-preview-content a{color:var(--link-color);text-decoration:none}.html-preview-content a:hover{text-decoration:underline}.html-preview-content img{max-width:100%;height:auto}.html-preview-content table{border-collapse:collapse;width:100%;margin:1em 0}.html-preview-content table th,.html-preview-content table td{border:1px solid var(--table-border);padding:8px 12px}.html-preview-content table th{background:var(--table-header-bg);font-weight:600}.nice table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0;overflow:hidden;border:1px solid var(--table-border);border-radius:4px}.nice table td,.nice table th{min-width:80px;height:36px;vertical-align:top;box-sizing:border-box;position:relative;border:1px solid var(--table-border);padding:6px 8px}.nice table th{background:var(--table-header-bg);font-weight:600}.nice table td.selectedCell,.nice table th.selectedCell{background:var(--table-selected-bg)}.nice table.table-selected{outline:2px solid var(--table-selected-border);outline-offset:2px;border-radius:4px}.nice table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:var(--focus-ring);pointer-events:none}.nice table .tableWrapper{overflow-x:auto;margin:1em 0}.nice .resize-cursor{cursor:col-resize}.table-menu-popover{z-index:9999!important}.table-menu-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.table-menu-popover.ant-popover .ant-popover-inner{background:var(--popup-bg)!important;border-radius:8px!important;box-shadow:var(--popup-shadow)!important;padding:12px!important;border:1px solid var(--popup-border)!important}.table-menu-popover .ant-popover-arrow{display:none!important}.table-menu-popover .ant-popover-inner-content,.table-menu-popover .table-menu-panel{background:var(--popup-bg)!important}.table-menu-popover .table-grid-cell{background:var(--editor-bg)!important;border-color:var(--popup-border)!important}.table-menu-popover .table-grid-label,.table-menu-popover .table-menu-section-title{color:var(--popup-text-secondary)!important}.table-menu-panel{min-width:200px}.table-menu-section-title{font-size:12px;color:var(--popup-text-secondary);font-weight:500;margin-bottom:6px;padding-left:2px}.table-menu-panel .table-menu-section-title:not(:first-child){margin-top:10px;padding-top:8px;border-top:1px solid var(--popup-border)}.table-menu-actions{display:flex;flex-wrap:wrap;gap:4px}.table-action-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--popup-text);transition:all .2s}.table-action-btn:hover:not(:disabled){background:var(--popup-hover-bg);color:var(--focus-ring)}.table-action-btn:disabled{opacity:.35;cursor:not-allowed}.table-insert-grid{display:flex;flex-direction:column;align-items:center;gap:8px}.table-grid-label{font-size:12px;color:var(--popup-text-secondary);text-align:center}.table-grid{display:flex;flex-direction:column;gap:2px}.table-grid-row{display:flex;gap:2px}.table-grid-cell{width:20px;height:20px;border:1px solid var(--popup-border);border-radius:2px;cursor:pointer;transition:all .15s}.table-grid-cell.is-hovered{background:var(--focus-ring);border-color:var(--focus-ring)}.table-grid-cell:hover{border-color:var(--focus-ring)}.table-floating-toolbar{position:absolute;z-index:100;display:flex;align-items:flex-end;height:28px}.table-toolbar-toggle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--image-toolbar-bg);border-radius:6px;box-shadow:var(--popup-shadow);cursor:pointer;color:var(--image-toolbar-text);transition:all .15s;flex-shrink:0}.table-toolbar-toggle:hover{background:var(--image-toolbar-active-bg)}.table-toolbar-expanded{display:none;position:absolute;left:26px;bottom:0;align-items:center;gap:2px;padding:6px 8px 6px 4px;background:var(--image-toolbar-bg);border-radius:0 6px 6px 0;box-shadow:var(--popup-shadow);white-space:nowrap}.table-floating-toolbar:hover .table-toolbar-expanded{display:flex}.table-toolbar-expanded .table-action-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .15s;color:var(--image-toolbar-text)}.table-toolbar-expanded .table-action-btn:hover:not(:disabled){background:var(--image-toolbar-hover-bg);color:var(--image-toolbar-text)}.table-toolbar-expanded .table-action-btn:disabled{opacity:.3;cursor:not-allowed}.align-menu-wrapper{position:relative}.align-menu-popup{position:absolute;top:100%;left:0;margin-top:4px;background:var(--popup-bg)!important;border-radius:6px;box-shadow:var(--popup-shadow);padding:8px;z-index:1000;min-width:120px}.align-menu-title{font-size:12px;color:var(--popup-text-secondary)!important;margin-bottom:6px;padding-left:4px}.align-menu-actions{display:flex;gap:4px}.align-action-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:4px;background:transparent!important;cursor:pointer;transition:all .15s;color:var(--popup-text)!important}.align-action-btn span{color:var(--popup-text)!important}.align-action-btn:hover{background:var(--popup-hover-bg)!important}.align-action-btn.is-active{background:var(--popup-active-bg)!important;color:var(--popup-active-color)!important}.table-bubble-divider{width:1px;height:20px;background:var(--image-toolbar-border);margin:0 4px}.image-menu-popover{z-index:9999!important}.image-menu-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.image-menu-popover.ant-popover .ant-popover-inner{padding:0!important;border-radius:8px!important;background:var(--popup-bg)!important;border:1px solid var(--popup-border)!important;box-shadow:var(--popup-shadow)!important}.image-menu-popover .ant-popover-arrow{display:none!important}.image-menu-popover .ant-popover-inner-content,.image-menu-popover .ant-tabs-nav{background:var(--popup-bg)!important}.image-menu-popover .ant-tabs-tab{color:var(--popup-text)!important}.image-menu-popover .ant-tabs-tab-active{color:var(--focus-ring)!important}.image-menu-panel{width:320px}.image-menu-panel .ant-tabs-nav{margin-bottom:0;padding:0 12px}.image-menu-upload{padding:16px}.image-menu-dragger{border-radius:8px!important}.image-menu-dragger .ant-upload{padding:24px!important}.image-menu-url{padding:16px;display:flex;gap:8px}.image-menu-url-btn{padding:4px 16px;background:var(--focus-ring);color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .2s}.image-menu-url-btn:hover{opacity:.85}.image-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:200px;min-height:150px;background:var(--code-bg);border:2px dashed var(--popup-border);border-radius:8px;padding:20px;color:var(--popup-text-secondary)}.image-placeholder.uploading{border-color:var(--focus-ring);background:var(--table-selected-bg)}.image-placeholder.error{border-color:#ff4d4f;background:#fff2f0;cursor:pointer}.image-placeholder.error:hover{border-color:#ff7875}.image-placeholder-spinner{width:32px;height:32px;border:3px solid var(--focus-ring);border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.image-placeholder-text{margin-top:12px;font-size:14px}.image-placeholder-retry{margin-top:8px;font-size:12px;color:var(--focus-ring)}.image-node-wrapper{margin:1em 0}.image-node-wrapper img{max-width:100%;height:auto;border-radius:4px;cursor:pointer}.image-node-wrapper img:hover{outline:2px solid var(--focus-ring);outline-offset:2px}.image-floating-toolbar{position:absolute;z-index:100;display:flex;align-items:flex-end;height:28px}.image-toolbar-toggle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--image-toolbar-bg);border-radius:6px;box-shadow:var(--popup-shadow);cursor:pointer;color:var(--image-toolbar-text);transition:all .15s;flex-shrink:0}.image-toolbar-toggle:hover{background:var(--image-toolbar-active-bg)}.image-toolbar-expanded{display:none;position:absolute;left:26px;bottom:0;align-items:center;gap:8px;padding:6px 8px 6px 4px;background:var(--image-toolbar-bg);border-radius:0 6px 6px 0;box-shadow:var(--popup-shadow);white-space:nowrap}.image-floating-toolbar:hover .image-toolbar-expanded{display:flex}.image-toolbar-section{display:flex;align-items:center;gap:4px}.image-toolbar-label{font-size:12px;color:var(--image-toolbar-text);opacity:.6;margin-right:4px}.image-toolbar-sizes,.image-toolbar-floats{display:flex;gap:2px}.image-toolbar-size-btn{padding:4px 8px;font-size:12px;background:transparent;border:none;border-radius:4px;color:var(--image-toolbar-text);cursor:pointer;transition:all .15s}.image-toolbar-size-btn:hover{background:var(--image-toolbar-hover-bg)}.image-toolbar-size-btn.is-active{background:var(--image-toolbar-active-bg);color:#fff}.image-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .15s;color:var(--image-toolbar-text)}.image-toolbar-btn:hover{background:var(--image-toolbar-hover-bg)}.image-toolbar-btn.is-active{background:var(--image-toolbar-active-bg);color:#fff}.image-toolbar-delete:hover{background:#ff4d4f}.image-toolbar-divider{width:1px;height:20px;background:var(--image-toolbar-border);margin:0 4px}.menu-separator{width:1px;height:20px;background:var(--editor-border);margin:6px 4px;display:inline-block;vertical-align:middle}.bubble-menu .menu-separator{background:var(--bubble-border)}.heading-selector-wrapper,.font-size-selector-wrapper,.link-button-wrapper{position:relative;display:inline-flex}.heading-selector-popup,.font-size-selector-popup,.link-button-popup{position:absolute;top:100%;left:0;margin-top:4px;background:var(--popup-bg);border-radius:6px;box-shadow:var(--popup-shadow);padding:8px;z-index:1000;min-width:120px}.heading-option,.font-size-option{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;color:var(--popup-text);cursor:pointer;transition:all .15s;font-size:13px;text-align:left}.heading-option:hover,.font-size-option:hover{background:var(--popup-hover-bg)}.heading-option.is-active,.font-size-option.is-active{background:var(--popup-active-bg);color:var(--popup-active-color)}.link-input-wrapper{display:flex;gap:8px;align-items:center}.char-count-wrapper{position:absolute;right:12px;bottom:8px;font-size:12px;color:var(--editor-text-secondary);background:var(--editor-bg);padding:2px 8px;border-radius:4px;opacity:.7;transition:opacity .2s;z-index:10}.char-count-wrapper:hover{opacity:1}.char-count-wrapper.exceeded{color:#ff4d4f;font-weight:500}.char-count-separator{margin:0 2px}.nice{font-size:16px;color:#000;padding:0 10px;line-height:1.6;word-spacing:0px;letter-spacing:0px;word-break:break-word;word-wrap:break-word;text-align:left;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,PingFang SC,Cambria,Cochin,Georgia,Times,Times New Roman,serif}.nice p{font-size:16px;padding-top:8px;padding-bottom:8px;margin:0;line-height:26px;color:#000}.nice h1,.nice h2,.nice h3,.nice h4,.nice h5,.nice h6{margin-top:30px;margin-bottom:15px;padding:0;font-weight:700;color:#000}.nice h1{font-size:24px}.nice h2{font-size:22px}.nice h3{font-size:20px}.nice h4{font-size:18px}.nice h5,.nice h6{font-size:16px}.nice h1 .prefix,.nice h2 .prefix,.nice h3 .prefix,.nice h4 .prefix,.nice h5 .prefix,.nice h6 .prefix,.nice h1 .suffix .nice h2 .suffix,.nice h3 .suffix,.nice h4 .suffix,.nice h5 .suffix,.nice h6 .suffix{display:none}.nice ul,.nice ol{margin-top:8px;margin-bottom:8px;padding-left:25px;color:#000}.nice ul{list-style-type:disc}.nice ul ul{list-style-type:square}.nice ol{list-style-type:decimal}.nice li p{margin-top:5px;margin-bottom:5px;line-height:26px;text-align:left;color:#010101;font-weight:500;padding:0}.nice blockquote{border:none}.nice blockquote{display:block;font-size:.9em;overflow:auto;overflow-scrolling:touch;border-left:3px solid rgba(0,0,0,.4);background:#0000000d;color:#6a737d;padding:10px 10px 10px 20px;margin-bottom:20px;margin-top:20px}.nice blockquote p{margin:0;color:#000;line-height:26px}.nice .table-of-contents a{border:none;color:#000;font-weight:400}.nice a{text-decoration:none;color:#1e6bb8;word-wrap:break-word;font-weight:700;border-bottom:1px solid #1e6bb8}.nice strong{font-weight:700;color:#000}.nice em{font-style:italic;color:#000}.nice em strong{font-weight:700;color:#000}.nice del{font-style:italic;color:#000}.nice hr{height:1px;margin:10px 0;border:none;border-top:1px solid black}.nice pre{margin-top:10px;margin-bottom:10px}.nice pre code{display:-webkit-box;font-family:Operator Mono,Consolas,Monaco,Menlo,monospace;border-radius:0;font-size:12px;-webkit-overflow-scrolling:touch}.nice pre code span{line-height:26px}.nice p code,.nice li code{font-size:14px;word-wrap:break-word;padding:2px 4px;border-radius:4px;margin:0 2px;color:#1e6bb8;background-color:#1b1f230d;font-family:Operator Mono,Consolas,Monaco,Menlo,monospace;word-break:break-all}.nice img{display:block;margin:0 auto;max-width:100%}.nice figure{margin:10px 0}.nice figcaption{margin-top:5px;text-align:center;color:#888;font-size:14px}.nice .table-container{overflow-x:auto}.nice table{display:table;text-align:left}.nice tbody{border:0}.nice table tr{border:0;border-top:1px solid #ccc;background-color:#fff}.nice table tr:nth-child(2n){background-color:#f8f8f8}.nice table tr th,.nice table tr td{font-size:16px;border:1px solid #ccc;padding:5px 10px;text-align:left}.nice table tr th{font-weight:700;background-color:#f0f0f0}.nice table tr th:nth-of-type(n),.nice table tr td:nth-of-type(n){min-width:85px}.nice .footnote-word,.nice .footnote-ref{color:#1e6bb8;font-weight:700}.nice .footnote-item{display:flex}.nice .footnote-num{display:inline;width:10%;background:none;font-size:80%;opacity:.6;line-height:26px;font-family:ptima-Regular,Optima,PingFangSC-light,PingFangTC-light,PingFang SC,Cambria,Cochin,Georgia,Times,Times New Roman,serif}.nice .footnote-item p{display:inline;font-size:14px;width:calc(100% - 50px);padding:0;margin:0;line-height:26px;color:#000;word-break:break-all}.nice sub,sup{line-height:0}.nice .footnotes-sep:before{content:"参考资料";display:block}.nice .block-equation{text-align:center;overflow:auto;display:block;-webkit-overflow-scrolling:touch}.nice .block-equation svg{max-width:300%!important;-webkit-overflow-scrolling:touch}.nice .imageflow-layer1{margin-top:1em;margin-bottom:.5em;white-space:normal;border:0px none;padding:0;overflow:hidden}.nice .imageflow-layer2{white-space:nowrap;width:100%;overflow-x:scroll}.nice .imageflow-layer3{display:inline-block;word-wrap:break-word;white-space:normal;vertical-align:middle;width:100%}.nice .imageflow-img{display:inline-block}.nice .imageflow-caption{text-align:center;margin-top:0;padding-top:0;color:#888}.nice .nice-suffix-juejin-container{margin-top:20px!important}.nice figure a{border:none}.nice figure a img{margin:0}.nice figure{display:flex;flex-direction:column;justify-content:center;align-items:center}.nice figure a{display:flex;justify-content:center;align-items:center}.nice figure a+figcaption{display:flex;justify-content:center;align-items:center;width:100%;margin-top:-35px;background:#000000b3;color:#fff;line-height:35px;z-index:20}.nice-editor,.nice-editor[data-theme=light]{--editor-bg: #ffffff;--editor-text: #1f2937;--editor-text-secondary: #6b7280;--editor-border: #e5e7eb;--editor-hover-bg: #f3f4f6;--editor-active-bg: #e5e7eb;--toolbar-bg: #ffffff;--toolbar-border: #e5e7eb;--toolbar-btn-color: #374151;--toolbar-btn-hover-bg: #f3f4f6;--toolbar-btn-active-bg: #e6f7ff;--toolbar-btn-active-color: #1890ff;--toolbar-btn-disabled-color: #d1d5db;--popup-bg: #ffffff;--popup-border: #e5e7eb;--popup-shadow: 0 4px 12px rgba(0, 0, 0, .15);--popup-text: #1f2937;--popup-text-secondary: #6b7280;--popup-hover-bg: #f3f4f6;--popup-active-bg: #1890ff;--popup-active-color: #ffffff;--bubble-bg: #ffffff;--bubble-text: #374151;--bubble-hover-bg: #f3f4f6;--bubble-active-bg: #1890ff;--bubble-border: #e5e7eb;--floating-bg: #ffffff;--floating-text: #374151;--floating-hover-bg: #f3f4f6;--floating-active-bg: #1890ff;--floating-border: #e5e7eb;--image-toolbar-bg: #ffffff;--image-toolbar-text: #374151;--image-toolbar-hover-bg: #f3f4f6;--image-toolbar-active-bg: #1890ff;--image-toolbar-border: #e5e7eb;--image-toolbar-handle-bg: #1890ff;--image-toolbar-handle-border: #ffffff;--table-border: #e5e7eb;--table-header-bg: #f9fafb;--table-selected-bg: rgba(24, 144, 255, .1);--table-selected-border: #1890ff;--placeholder-color: #9ca3af;--selection-bg: rgba(24, 144, 255, .2);--focus-ring: #1890ff;--link-color: #1890ff;--code-bg: #f3f4f6;--code-text: #e11d48;--blockquote-border: #d1d5db;--blockquote-bg: #f9fafb}.nice-editor[data-theme=dark]{--editor-bg: #1f2937;--editor-text: #f9fafb;--editor-text-secondary: #9ca3af;--editor-border: #374151;--editor-hover-bg: #374151;--editor-active-bg: #4b5563;--toolbar-bg: #1f2937;--toolbar-border: #374151;--toolbar-btn-color: #f9fafb;--toolbar-btn-hover-bg: #374151;--toolbar-btn-active-bg: #4b5563;--toolbar-btn-active-color: #40a9ff;--toolbar-btn-disabled-color: #6b7280;--popup-bg: #374151;--popup-border: #4b5563;--popup-shadow: 0 4px 12px rgba(0, 0, 0, .4);--popup-text: #f9fafb;--popup-text-secondary: #9ca3af;--popup-hover-bg: #4b5563;--popup-active-bg: #1890ff;--popup-active-color: #ffffff;--bubble-bg: #1f2937;--bubble-text: #ffffff;--bubble-hover-bg: #374151;--bubble-active-bg: #1890ff;--bubble-border: #374151;--floating-bg: #1f2937;--floating-text: #ffffff;--floating-hover-bg: #374151;--floating-active-bg: #1890ff;--floating-border: #374151;--image-toolbar-bg: #1f2937;--image-toolbar-text: #ffffff;--image-toolbar-hover-bg: #374151;--image-toolbar-active-bg: #1890ff;--image-toolbar-border: #374151;--image-toolbar-handle-bg: #1890ff;--image-toolbar-handle-border: #ffffff;--table-border: #374151;--table-header-bg: #374151;--table-selected-bg: rgba(24, 144, 255, .2);--table-selected-border: #1890ff;--placeholder-color: #6b7280;--selection-bg: rgba(24, 144, 255, .3);--focus-ring: #1890ff;--link-color: #40a9ff;--code-bg: #374151;--code-text: #f9a8d4;--blockquote-border: #4b5563;--blockquote-bg: #374151}
|
|
1
|
+
.nice-editor{border:1px solid var(--editor-border);background:var(--editor-bg);position:relative;color:var(--editor-text)}.nice-editor.readonly{background:var(--code-bg)}.nice-editor.readonly .nice{cursor:default;-webkit-user-select:text;user-select:text}.nice-editor .control-group{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--toolbar-border);background:var(--toolbar-bg)}.nice-editor .button-group{display:flex;flex-wrap:wrap;gap:4px}.nice-editor .button-group button.button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--toolbar-btn-color);transition:all .2s;white-space:nowrap}.nice-editor .button-group button.button:hover:not(:disabled){background:var(--toolbar-btn-hover-bg);color:var(--toolbar-btn-active-color)}.nice-editor .button-group button.button:disabled{opacity:.4;cursor:not-allowed}.nice-editor .button-group button.button.is-active{background:var(--toolbar-btn-active-bg)!important;border-color:var(--toolbar-btn-active-color)!important;color:var(--toolbar-btn-active-color)}.nice{padding:16px;min-height:300px;max-height:600px;overflow-y:auto;color:var(--editor-text)}.nice :first-child{margin-top:0}.nice>*+*{margin-top:.75em}.nice ul,.nice ol{padding:0 1rem;margin:1.25rem 1rem 1.25rem .4rem}.nice ul li p,.nice ol li p{margin-top:.25em;margin-bottom:.25em}.nice h1,.nice h2,.nice h3,.nice h4,.nice h5,.nice h6{line-height:1.1;margin-top:2.5rem;text-wrap:pretty}.nice h1,.nice h2{margin-top:3.5rem;margin-bottom:1.5rem}.nice h1{font-size:1.4rem}.nice h2{font-size:1.2rem}.nice h3{font-size:1.1rem}.nice h4,.nice h5,.nice h6{font-size:1rem}.nice code{background-color:var(--code-bg);border-radius:.4rem;color:var(--code-text);font-size:.85rem;padding:.25em .3em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.nice pre{background:#282c34;border-radius:.5rem;color:#abb2bf;font-family:JetBrainsMono,SFMono-Regular,monospace;margin:1.5rem 0;padding:.75rem 1rem}.nice pre code{background:none;color:inherit;font-size:.8rem;padding:0}.nice blockquote{border-left:3px solid var(--blockquote-border);margin:1.5rem 0;padding-left:1rem;color:var(--editor-text-secondary);background:var(--blockquote-bg)}.nice hr{border:none;border-top:1px solid var(--editor-border);margin:2rem 0}.nice p.is-editor-empty:first-child:before{color:var(--placeholder-color);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.nice .ProseMirror-selectednode,.nice .ProseMirror-selectednode *{color:var(--editor-text)!important}.floating-menu{display:flex;gap:2px;padding:4px;background:var(--floating-bg);border-radius:6px;box-shadow:var(--popup-shadow);border:1px solid var(--floating-border);margin-top:1em}.floating-menu button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--floating-text);transition:all .2s}.floating-menu button:hover{background:var(--floating-hover-bg)}.floating-menu button.is-active{background:var(--floating-active-bg)!important}.bubble-menu{display:flex;gap:2px;padding:4px;background:var(--bubble-bg);border-radius:6px;box-shadow:var(--popup-shadow)}.bubble-menu button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .2s;color:var(--bubble-text)}.bubble-menu button:hover{background:var(--bubble-hover-bg)}.bubble-menu button.is-active{background:var(--bubble-active-bg)!important}.nice-editor .outline-node{background:var(--popup-bg);border:1px solid var(--popup-border);border-radius:8px;padding:16px;margin:16px 0;color:var(--popup-text)}.nice-editor .outline-node.ProseMirror-selectednode{outline:2px solid var(--focus-ring);outline-offset:2px}.nice-editor .outline-node-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--popup-border)}.nice-editor .outline-node-title{font-weight:600;font-size:14px;color:var(--popup-text)}.nice-editor .outline-node-delete{width:20px;height:20px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--popup-text-secondary);cursor:pointer;font-size:16px;line-height:1;transition:all .2s}.nice-editor .outline-node-delete:hover{background:#ff4d4f;color:#fff}.nice-editor .outline-node-empty{color:var(--popup-text-secondary);font-size:13px;text-align:center;padding:12px}.nice-editor .outline-node-list{list-style:none;padding:0;margin:0;overflow-y:auto}.nice-editor .outline-node-item{padding:0;margin:0;font-size:13px;border-radius:4px;transition:all .2s}.nice-editor .outline-node-link{display:block;padding:6px 8px;color:var(--popup-text-secondary);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border-radius:4px}.nice-editor .outline-node-link:hover{background:var(--popup-hover-bg);color:var(--focus-ring)}.nice-editor .outline-node-level-1 .outline-node-link{padding-left:8px;font-weight:500}.nice-editor .outline-node-level-2 .outline-node-link{padding-left:20px}.nice-editor .outline-node-level-3 .outline-node-link{padding-left:32px;font-size:12px}.nice-editor .outline-node-level-4 .outline-node-link{padding-left:44px;font-size:12px}.nice-editor .outline-node-level-5 .outline-node-link{padding-left:56px;font-size:12px;color:var(--popup-text-secondary)}.nice-editor .outline-node-level-6 .outline-node-link{padding-left:68px;font-size:12px;color:var(--popup-text-secondary)}.variable-node-wrapper{display:inline}.variable-node-content{display:inline-flex;align-items:center;padding:0 6px;background:linear-gradient(135deg,#c5c5c5,#bab9bb);color:#fff;border-radius:4px;font-size:.8em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;cursor:default;-webkit-user-select:none;user-select:none;transition:all .2s}.variable-node-content:hover{box-shadow:0 2px 8px #667eea66}.ProseMirror-selectednode .variable-node-content{outline:2px solid var(--focus-ring);outline-offset:2px}.variable-panel{min-width:200px;max-width:300px}.variable-panel-title{font-weight:600;font-size:14px;color:var(--popup-text);padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--popup-border)}.variable-panel-list{display:flex;flex-direction:column;gap:4px}.variable-panel-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all .2s}.variable-panel-item:hover{background:var(--popup-hover-bg)}.variable-panel-item-label{flex:1;font-size:14px;color:var(--popup-text)}.variable-panel-item-id{font-size:12px;color:var(--popup-text-secondary);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.variable-panel-popover{z-index:9999!important}.variable-panel-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.variable-panel-popover.ant-popover .ant-popover-inner{background:var(--popup-bg)!important;border-radius:8px!important;box-shadow:var(--popup-shadow)!important;border:1px solid var(--popup-border)!important}.variable-panel-popover .ant-popover-arrow{display:none!important}.variable-panel-popover .ant-popover-inner-content,.variable-panel-popover .variable-panel{background:var(--popup-bg)!important}.variable-panel-popover .variable-panel-title{color:var(--popup-text)!important;border-bottom-color:var(--popup-border)!important}.variable-panel-popover .variable-panel-item-label{color:var(--popup-text)!important}.variable-panel-popover .variable-panel-item-id{color:var(--popup-text-secondary)!important}.source-code-modal .ant-modal-body{padding:16px}.source-code-content{background:var(--code-bg);border:1px solid var(--popup-border);border-radius:6px;padding:16px;margin:0;max-height:500px;overflow:auto;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:13px;line-height:1.6;color:var(--popup-text);white-space:pre-wrap;word-wrap:break-word}.html-preview-modal .ant-modal-body{padding:16px}.html-preview-container{background:var(--editor-bg);border:1px solid var(--popup-border);border-radius:8px;min-height:400px;max-height:600px;overflow:auto}.html-preview-content{padding:20px;line-height:1.6;color:var(--editor-text)}.html-preview-content h1,.html-preview-content h2,.html-preview-content h3,.html-preview-content h4,.html-preview-content h5,.html-preview-content h6{margin-top:1.5em;margin-bottom:.5em;line-height:1.3}.html-preview-content h1{font-size:2em;border-bottom:1px solid var(--editor-border);padding-bottom:.3em}.html-preview-content h2{font-size:1.5em;border-bottom:1px solid var(--editor-border);padding-bottom:.3em}.html-preview-content h3{font-size:1.25em}.html-preview-content p{margin:1em 0}.html-preview-content ul,.html-preview-content ol{padding-left:2em;margin:1em 0}.html-preview-content blockquote{border-left:4px solid var(--blockquote-border);padding-left:1em;margin:1em 0;color:var(--editor-text-secondary)}.html-preview-content code{background:var(--code-bg);padding:.2em .4em;border-radius:3px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em}.html-preview-content pre{background:#f6f8fa;border:1px solid var(--popup-border);border-radius:6px;padding:16px;overflow-x:auto;margin:1em 0}.html-preview-content pre code{background:none;padding:0}.html-preview-content hr{border:none;border-top:1px solid var(--editor-border);margin:2em 0}.html-preview-content a{color:var(--link-color);text-decoration:none}.html-preview-content a:hover{text-decoration:underline}.html-preview-content img{max-width:100%;height:auto}.html-preview-content table{border-collapse:collapse;width:100%;margin:1em 0}.html-preview-content table th,.html-preview-content table td{border:1px solid var(--table-border);padding:8px 12px}.html-preview-content table th{background:var(--table-header-bg);font-weight:600}.nice table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0;overflow:hidden;border:1px solid var(--table-border);border-radius:4px}.nice table td,.nice table th{min-width:80px;height:36px;vertical-align:top;box-sizing:border-box;position:relative;border:1px solid var(--table-border);padding:6px 8px}.nice table th{background:var(--table-header-bg);font-weight:600}.nice table td.selectedCell,.nice table th.selectedCell{background:var(--table-selected-bg)}.nice table.table-selected{outline:2px solid var(--table-selected-border);outline-offset:2px;border-radius:4px}.nice table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:var(--focus-ring);pointer-events:none}.nice table .tableWrapper{overflow-x:auto;margin:1em 0}.nice .resize-cursor{cursor:col-resize}.table-menu-popover{z-index:9999!important}.table-menu-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.table-menu-popover.ant-popover .ant-popover-inner{background:var(--popup-bg)!important;border-radius:8px!important;box-shadow:var(--popup-shadow)!important;padding:12px!important;border:1px solid var(--popup-border)!important}.table-menu-popover .ant-popover-arrow{display:none!important}.table-menu-popover .ant-popover-inner-content,.table-menu-popover .table-menu-panel{background:var(--popup-bg)!important}.table-menu-popover .table-grid-cell{background:var(--editor-bg)!important;border-color:var(--popup-border)!important}.table-menu-popover .table-grid-label,.table-menu-popover .table-menu-section-title{color:var(--popup-text-secondary)!important}.table-menu-panel{min-width:200px}.table-menu-section-title{font-size:12px;color:var(--popup-text-secondary);font-weight:500;margin-bottom:6px;padding-left:2px}.table-menu-panel .table-menu-section-title:not(:first-child){margin-top:10px;padding-top:8px;border-top:1px solid var(--popup-border)}.table-menu-actions{display:flex;flex-wrap:wrap;gap:4px}.table-action-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;color:var(--popup-text);transition:all .2s}.table-action-btn:hover:not(:disabled){background:var(--popup-hover-bg);color:var(--focus-ring)}.table-action-btn:disabled{opacity:.35;cursor:not-allowed}.table-insert-grid{display:flex;flex-direction:column;align-items:center;gap:8px}.table-grid-label{font-size:12px;color:var(--popup-text-secondary);text-align:center}.table-grid{display:flex;flex-direction:column;gap:2px}.table-grid-row{display:flex;gap:2px}.table-grid-cell{width:20px;height:20px;border:1px solid var(--popup-border);border-radius:2px;cursor:pointer;transition:all .15s}.table-grid-cell.is-hovered{background:var(--focus-ring);border-color:var(--focus-ring)}.table-grid-cell:hover{border-color:var(--focus-ring)}.table-floating-toolbar{position:absolute;z-index:100;display:flex;align-items:flex-end;height:28px}.table-toolbar-toggle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--image-toolbar-bg);border-radius:6px;box-shadow:var(--popup-shadow);cursor:pointer;color:var(--image-toolbar-text);transition:all .15s;flex-shrink:0}.table-toolbar-toggle:hover{background:var(--image-toolbar-active-bg)}.table-toolbar-expanded{display:none;position:absolute;left:26px;bottom:0;align-items:center;gap:2px;padding:6px 8px 6px 4px;background:var(--image-toolbar-bg);border-radius:0 6px 6px 0;box-shadow:var(--popup-shadow);white-space:nowrap}.table-floating-toolbar:hover .table-toolbar-expanded{display:flex}.table-toolbar-expanded .table-action-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .15s;color:var(--image-toolbar-text)}.table-toolbar-expanded .table-action-btn:hover:not(:disabled){background:var(--image-toolbar-hover-bg);color:var(--image-toolbar-text)}.table-toolbar-expanded .table-action-btn:disabled{opacity:.3;cursor:not-allowed}.align-menu-wrapper{position:relative}.align-menu-popup{position:absolute;top:100%;left:0;margin-top:4px;background:var(--popup-bg)!important;border-radius:6px;box-shadow:var(--popup-shadow);padding:8px;z-index:1000;min-width:120px}.align-menu-title{font-size:12px;color:var(--popup-text-secondary)!important;margin-bottom:6px;padding-left:4px}.align-menu-actions{display:flex;gap:4px}.align-action-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:4px;background:transparent!important;cursor:pointer;transition:all .15s;color:var(--popup-text)!important}.align-action-btn span{color:var(--popup-text)!important}.align-action-btn:hover{background:var(--popup-hover-bg)!important}.align-action-btn.is-active{background:var(--popup-active-bg)!important;color:var(--popup-active-color)!important}.table-bubble-divider{width:1px;height:20px;background:var(--image-toolbar-border);margin:0 4px}.image-menu-popover{z-index:9999!important}.image-menu-popover.ant-popover .ant-popover-content{background:var(--popup-bg)!important}.image-menu-popover.ant-popover .ant-popover-inner{padding:0!important;border-radius:8px!important;background:var(--popup-bg)!important;border:1px solid var(--popup-border)!important;box-shadow:var(--popup-shadow)!important}.image-menu-popover .ant-popover-arrow{display:none!important}.image-menu-popover .ant-popover-inner-content,.image-menu-popover .ant-tabs-nav{background:var(--popup-bg)!important}.image-menu-popover .ant-tabs-tab{color:var(--popup-text)!important}.image-menu-popover .ant-tabs-tab-active{color:var(--focus-ring)!important}.image-menu-panel{width:320px}.image-menu-panel .ant-tabs-nav{margin-bottom:0;padding:0 12px}.image-menu-upload{padding:16px}.image-menu-dragger{border-radius:8px!important}.image-menu-dragger .ant-upload{padding:24px!important}.image-menu-url{padding:16px;display:flex;gap:8px}.image-menu-url-btn{padding:4px 16px;background:var(--focus-ring);color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .2s}.image-menu-url-btn:hover{opacity:.85}.image-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:200px;min-height:150px;background:var(--code-bg);border:2px dashed var(--popup-border);border-radius:8px;padding:20px;color:var(--popup-text-secondary)}.image-placeholder.uploading{border-color:var(--focus-ring);background:var(--table-selected-bg)}.image-placeholder.error{border-color:#ff4d4f;background:#fff2f0;cursor:pointer}.image-placeholder.error:hover{border-color:#ff7875}.image-placeholder-spinner{width:32px;height:32px;border:3px solid var(--focus-ring);border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.image-placeholder-text{margin-top:12px;font-size:14px}.image-placeholder-retry{margin-top:8px;font-size:12px;color:var(--focus-ring)}.image-node-wrapper{margin:1em 0}.image-node-wrapper img{max-width:100%;height:auto;border-radius:4px;cursor:pointer}.image-node-wrapper img:hover{outline:2px solid var(--focus-ring);outline-offset:2px}.image-floating-toolbar{position:absolute;z-index:100;display:flex;align-items:flex-end;height:28px}.image-toolbar-toggle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--image-toolbar-bg);border-radius:6px;box-shadow:var(--popup-shadow);cursor:pointer;color:var(--image-toolbar-text);transition:all .15s;flex-shrink:0}.image-toolbar-toggle:hover{background:var(--image-toolbar-active-bg)}.image-toolbar-expanded{display:none;position:absolute;left:26px;bottom:0;align-items:center;gap:8px;padding:6px 8px 6px 4px;background:var(--image-toolbar-bg);border-radius:0 6px 6px 0;box-shadow:var(--popup-shadow);white-space:nowrap}.image-floating-toolbar:hover .image-toolbar-expanded{display:flex}.image-toolbar-section{display:flex;align-items:center;gap:4px}.image-toolbar-label{font-size:12px;color:var(--image-toolbar-text);opacity:.6;margin-right:4px}.image-toolbar-sizes,.image-toolbar-floats{display:flex;gap:2px}.image-toolbar-size-btn{padding:4px 8px;font-size:12px;background:transparent;border:none;border-radius:4px;color:var(--image-toolbar-text);cursor:pointer;transition:all .15s}.image-toolbar-size-btn:hover{background:var(--image-toolbar-hover-bg)}.image-toolbar-size-btn.is-active{background:var(--image-toolbar-active-bg);color:#fff}.image-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:4px;background:transparent;cursor:pointer;transition:all .15s;color:var(--image-toolbar-text)}.image-toolbar-btn:hover{background:var(--image-toolbar-hover-bg)}.image-toolbar-btn.is-active{background:var(--image-toolbar-active-bg);color:#fff}.image-toolbar-delete:hover{background:#ff4d4f}.image-toolbar-divider{width:1px;height:20px;background:var(--image-toolbar-border);margin:0 4px}.menu-separator{width:1px;height:20px;background:var(--editor-border);margin:6px 4px;display:inline-block;vertical-align:middle}.bubble-menu .menu-separator{background:var(--bubble-border)}.heading-selector-wrapper,.font-size-selector-wrapper,.link-button-wrapper{position:relative;display:inline-flex}.heading-selector-popup,.font-size-selector-popup,.link-button-popup{position:absolute;top:100%;left:0;margin-top:4px;background:var(--popup-bg);border-radius:6px;box-shadow:var(--popup-shadow);padding:8px;z-index:1000;min-width:120px}.heading-option,.font-size-option{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;color:var(--popup-text);cursor:pointer;transition:all .15s;font-size:13px;text-align:left}.heading-option:hover,.font-size-option:hover{background:var(--popup-hover-bg)}.heading-option.is-active,.font-size-option.is-active{background:var(--popup-active-bg);color:var(--popup-active-color)}.link-input-wrapper{display:flex;gap:8px;align-items:center}.char-count-wrapper{position:absolute;right:12px;bottom:8px;font-size:12px;color:var(--editor-text-secondary);background:var(--editor-bg);padding:2px 8px;border-radius:4px;opacity:.7;transition:opacity .2s;z-index:10}.char-count-wrapper:hover{opacity:1}.char-count-wrapper.exceeded{color:#ff4d4f;font-weight:500}.char-count-separator{margin:0 2px}.nice{font-size:16px;color:#000;padding:0 10px;line-height:1.6;word-spacing:0px;letter-spacing:0px;word-break:break-word;word-wrap:break-word;text-align:left;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,PingFang SC,Cambria,Cochin,Georgia,Times,Times New Roman,serif}.nice p{font-size:16px;padding-top:8px;padding-bottom:8px;margin:0;line-height:26px;color:#000}.nice h1,.nice h2,.nice h3,.nice h4,.nice h5,.nice h6{margin-top:30px;margin-bottom:15px;padding:0;font-weight:700;color:#000}.nice h1{font-size:24px}.nice h2{font-size:22px}.nice h3{font-size:20px}.nice h4{font-size:18px}.nice h5,.nice h6{font-size:16px}.nice h1 .prefix,.nice h2 .prefix,.nice h3 .prefix,.nice h4 .prefix,.nice h5 .prefix,.nice h6 .prefix,.nice h1 .suffix .nice h2 .suffix,.nice h3 .suffix,.nice h4 .suffix,.nice h5 .suffix,.nice h6 .suffix{display:none}.nice ul,.nice ol{margin-top:8px;margin-bottom:8px;padding-left:25px;color:#000}.nice ul{list-style-type:disc}.nice ul ul{list-style-type:square}.nice ol{list-style-type:decimal}.nice li p{margin-top:5px;margin-bottom:5px;line-height:26px;text-align:left;color:#010101;font-weight:500;padding:0}.nice blockquote{border:none}.nice blockquote{display:block;font-size:.9em;overflow:auto;overflow-scrolling:touch;border-left:3px solid rgba(0,0,0,.4);background:#0000000d;color:#6a737d;padding:10px 10px 10px 20px;margin-bottom:20px;margin-top:20px}.nice blockquote p{margin:0;color:#000;line-height:26px}.nice .table-of-contents a{border:none;color:#000;font-weight:400}.nice a{text-decoration:none;color:#1e6bb8;word-wrap:break-word;font-weight:700;border-bottom:1px solid #1e6bb8}.nice strong{font-weight:700;color:#000}.nice em{font-style:italic;color:#000}.nice em strong{font-weight:700;color:#000}.nice del{font-style:italic;color:#000}.nice hr{height:1px;margin:10px 0;border:none;border-top:1px solid black}.nice pre{margin-top:10px;margin-bottom:10px}.nice pre code{display:-webkit-box;font-family:Operator Mono,Consolas,Monaco,Menlo,monospace;border-radius:0;font-size:12px;-webkit-overflow-scrolling:touch}.nice pre code span{line-height:26px}.nice p code,.nice li code{font-size:14px;word-wrap:break-word;padding:2px 4px;border-radius:4px;margin:0 2px;color:#1e6bb8;background-color:#1b1f230d;font-family:Operator Mono,Consolas,Monaco,Menlo,monospace;word-break:break-all}.nice img{display:block;margin:0 auto;max-width:100%}.nice figure{margin:10px 0}.nice figcaption{margin-top:5px;text-align:center;color:#888;font-size:14px}.nice .table-container{overflow-x:auto}.nice table{display:table;text-align:left}.nice tbody{border:0}.nice table tr{border:0;border-top:1px solid #ccc;background-color:#fff}.nice table tr:nth-child(2n){background-color:#f8f8f8}.nice table tr th,.nice table tr td{font-size:16px;border:1px solid #ccc;padding:5px 10px;text-align:left}.nice table tr th{font-weight:700;background-color:#f0f0f0}.nice table tr th:nth-of-type(n),.nice table tr td:nth-of-type(n){min-width:85px}.nice .footnote-word,.nice .footnote-ref{color:#1e6bb8;font-weight:700}.nice .footnote-item{display:flex}.nice .footnote-num{display:inline;width:10%;background:none;font-size:80%;opacity:.6;line-height:26px;font-family:ptima-Regular,Optima,PingFangSC-light,PingFangTC-light,PingFang SC,Cambria,Cochin,Georgia,Times,Times New Roman,serif}.nice .footnote-item p{display:inline;font-size:14px;width:calc(100% - 50px);padding:0;margin:0;line-height:26px;color:#000;word-break:break-all}.nice sub,sup{line-height:0}.nice .footnotes-sep:before{content:"参考资料";display:block}.nice .block-equation{text-align:center;overflow:auto;display:block;-webkit-overflow-scrolling:touch}.nice .block-equation svg{max-width:300%!important;-webkit-overflow-scrolling:touch}.nice .imageflow-layer1{margin-top:1em;margin-bottom:.5em;white-space:normal;border:0px none;padding:0;overflow:hidden}.nice .imageflow-layer2{white-space:nowrap;width:100%;overflow-x:scroll}.nice .imageflow-layer3{display:inline-block;word-wrap:break-word;white-space:normal;vertical-align:middle;width:100%}.nice .imageflow-img{display:inline-block}.nice .imageflow-caption{text-align:center;margin-top:0;padding-top:0;color:#888}.nice .nice-suffix-juejin-container{margin-top:20px!important}.nice figure a{border:none}.nice figure a img{margin:0}.nice figure{display:flex;flex-direction:column;justify-content:center;align-items:center}.nice figure a{display:flex;justify-content:center;align-items:center}.nice figure a+figcaption{display:flex;justify-content:center;align-items:center;width:100%;margin-top:-35px;background:#000000b3;color:#fff;line-height:35px;z-index:20}.nice-editor,.nice-editor[data-theme=light]{--editor-bg: #ffffff;--editor-text: #1f2937;--editor-text-secondary: #6b7280;--editor-border: #e5e7eb;--editor-hover-bg: #f3f4f6;--editor-active-bg: #e5e7eb;--toolbar-bg: #ffffff;--toolbar-border: #e5e7eb;--toolbar-btn-color: #374151;--toolbar-btn-hover-bg: #f3f4f6;--toolbar-btn-active-bg: #e6f7ff;--toolbar-btn-active-color: #1890ff;--toolbar-btn-disabled-color: #d1d5db;--popup-bg: #ffffff;--popup-border: #e5e7eb;--popup-shadow: 0 4px 12px rgba(0, 0, 0, .15);--popup-text: #1f2937;--popup-text-secondary: #6b7280;--popup-hover-bg: #f3f4f6;--popup-active-bg: #1890ff;--popup-active-color: #ffffff;--bubble-bg: #ffffff;--bubble-text: #374151;--bubble-hover-bg: #f3f4f6;--bubble-active-bg: #1890ff;--bubble-border: #e5e7eb;--floating-bg: #ffffff;--floating-text: #374151;--floating-hover-bg: #f3f4f6;--floating-active-bg: #1890ff;--floating-border: #e5e7eb;--image-toolbar-bg: #ffffff;--image-toolbar-text: #374151;--image-toolbar-hover-bg: #f3f4f6;--image-toolbar-active-bg: #1890ff;--image-toolbar-border: #e5e7eb;--image-toolbar-handle-bg: #1890ff;--image-toolbar-handle-border: #ffffff;--table-border: #e5e7eb;--table-header-bg: #f9fafb;--table-selected-bg: rgba(24, 144, 255, .1);--table-selected-border: #1890ff;--placeholder-color: #9ca3af;--selection-bg: rgba(24, 144, 255, .2);--focus-ring: #1890ff;--link-color: #1890ff;--code-bg: #f3f4f6;--code-text: #e11d48;--blockquote-border: #d1d5db;--blockquote-bg: #f9fafb}.nice-editor[data-theme=dark]{--editor-bg: #1f2937;--editor-text: #f9fafb;--editor-text-secondary: #9ca3af;--editor-border: #374151;--editor-hover-bg: #374151;--editor-active-bg: #4b5563;--toolbar-bg: #1f2937;--toolbar-border: #374151;--toolbar-btn-color: #f9fafb;--toolbar-btn-hover-bg: #374151;--toolbar-btn-active-bg: #4b5563;--toolbar-btn-active-color: #40a9ff;--toolbar-btn-disabled-color: #6b7280;--popup-bg: #374151;--popup-border: #4b5563;--popup-shadow: 0 4px 12px rgba(0, 0, 0, .4);--popup-text: #f9fafb;--popup-text-secondary: #9ca3af;--popup-hover-bg: #4b5563;--popup-active-bg: #1890ff;--popup-active-color: #ffffff;--bubble-bg: #1f2937;--bubble-text: #ffffff;--bubble-hover-bg: #374151;--bubble-active-bg: #1890ff;--bubble-border: #374151;--floating-bg: #1f2937;--floating-text: #ffffff;--floating-hover-bg: #374151;--floating-active-bg: #1890ff;--floating-border: #374151;--image-toolbar-bg: #1f2937;--image-toolbar-text: #ffffff;--image-toolbar-hover-bg: #374151;--image-toolbar-active-bg: #1890ff;--image-toolbar-border: #374151;--image-toolbar-handle-bg: #1890ff;--image-toolbar-handle-border: #ffffff;--table-border: #374151;--table-header-bg: #374151;--table-selected-bg: rgba(24, 144, 255, .2);--table-selected-border: #1890ff;--placeholder-color: #6b7280;--selection-bg: rgba(24, 144, 255, .3);--focus-ring: #1890ff;--link-color: #40a9ff;--code-bg: #374151;--code-text: #f9a8d4;--blockquote-border: #4b5563;--blockquote-bg: #374151}
|