PluginProbe
Code Snippets / 3.6.3
Code Snippets v3.6.3
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / js / types / Window.ts

Window.ts in Code Snippets 3.6.3, at js/types/Window.ts

57 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import tinymce from 'tinymce'
2 import { Snippet } from './Snippet'
3 import { CodeEditorInstance, EditorOption, WordPressCodeEditor } from './WordPressCodeEditor'
4 import { WordPressEditor } from './WordPressEditor'
5
6 declare global {
7 interface Window {
8 readonly wp: {
9 readonly editor?: WordPressEditor
10 readonly codeEditor: WordPressCodeEditor
11 }
12 readonly pagenow: string
13 readonly ajaxurl: string
14 readonly tinymce?: tinymce.EditorManager
15 readonly wpActiveEditor?: string
16 code_snippets_editor_preview?: CodeEditorInstance
17 readonly code_snippets_editor_settings: EditorOption[]
18 readonly CODE_SNIPPETS?: {
19 isLicensed: boolean
20 restAPI: {
21 base: string
22 snippets: string
23 cloud: string
24 nonce: string
25 localToken: string
26 }
27 urls: {
28 plugin: string
29 manage: string
30 addNew: string
31 edit: string
32 }
33 }
34 readonly CODE_SNIPPETS_EDIT?: {
35 snippet: Snippet
36 isPreview: boolean
37 enableTags: boolean
38 enableDownloads: boolean
39 scrollToNotices: boolean
40 extraSaveButtons: boolean
41 activateByDefault: boolean
42 enableDescription: boolean
43 editorTheme: string
44 pageTitleActions: Record<string, string>
45 tagOptions: {
46 enabled: boolean
47 allowSpaces: boolean
48 availableTags: string[]
49 }
50 descEditorOptions: {
51 rows: number
52 mediaButtons: boolean
53 }
54 }
55 }
56 }
57