| 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 |
|