PluginProbe
Code Snippets / 3.5.0
Code Snippets v3.5.0
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.5.0, at js/types/Window.ts

51 lines 1.2 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 pluginUrl: string
20 isLicensed: boolean
21 restAPI: {
22 base: string
23 nonce: string
24 snippets: string
25 }
26 }
27 readonly CODE_SNIPPETS_EDIT?: {
28 snippet: Snippet
29 menuUrl: string
30 addNewUrl: string
31 isPreview: boolean
32 enableTags: boolean
33 enableDownloads: boolean
34 extraSaveButtons: boolean
35 activateByDefault: boolean
36 enableDescription: boolean
37 editorTheme: string
38 pageTitleActions: Record<string, string>
39 tagOptions: {
40 enabled: boolean
41 allowSpaces: boolean
42 availableTags: string[]
43 }
44 descEditorOptions: {
45 rows: number
46 mediaButtons: boolean
47 }
48 }
49 }
50 }
51