From 2265fd173f1b23ec44e2a20d610c96c8918af4bd Mon Sep 17 00:00:00 2001 From: Vern Jensen Date: Mon, 16 Nov 2015 16:33:40 -0800 Subject: [PATCH 1/2] Added some missing definitions Added some mkissing elements, such as CKEDITOR.config.allowedContent, .width, and more. --- ckeditor/ckeditor.d.ts | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/ckeditor/ckeditor.d.ts b/ckeditor/ckeditor.d.ts index cab51f72c..4f5517ca0 100644 --- a/ckeditor/ckeditor.d.ts +++ b/ckeditor/ckeditor.d.ts @@ -74,6 +74,7 @@ declare module CKEDITOR { function appendTo(element: string, config?: config, data?: string): editor; function appendTo(element: HTMLTextAreaElement, config?: config, data?: string): editor; function domReady(): void; + function dialogCommand(dialogName: string): void; function editorConfig(config: config): void; function getCss(): string; function getTemplate(name: string): template; @@ -556,32 +557,36 @@ declare module CKEDITOR { groups?: string[]; } + // Currently very incomplete. See here for all options that should be included: + // http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-fileTools_defaultFileName interface config { + allowedContent?: string | boolean; + colorButton_enableMore?: boolean; + colorButton_colors?: string; contentsCss?: string | string[]; - startupMode?: string; + customConfig?: string; + extraPlugins?: string; + font_names?: string; + font_defaultLabel?: string; + fontSize_sizes?: string; + fontSize_defaultLabel?: string; + height?: string | number; + language?: string; + on?: any; + plugins?: string; + startupFocus?: boolean; + startupMode?: string; removeButtons?: string; removePlugins?: string; toolbar?: any; toolbarGroups?: toolbarGroups[]; + toolbarLocation?: string; + readOnly?: boolean; skin?: string; - language?: string; - plugins?: string; - font_names?: string; - font_defaultLabel?: string; - fontSize_sizes?: string; - fontSize_defaultLabel?: string; - colorButton_enableMore?: boolean; - colorButton_colors?: string; - startupFocus?: boolean; - on?: any; - extraPlugins?: string; - height?: string | number; - toolbarLocation?: string; - readOnly?: boolean; - customConfig?: string; + width?: string | number; } - + interface feature { } @@ -745,6 +750,7 @@ declare module CKEDITOR { beforeInit?(editor: editor): any; init?(editor: editor): any; onLoad?(): any; + icons?: string; } function add(name: string, definition?: IPluginDefinition): void; @@ -933,6 +939,8 @@ declare module CKEDITOR { interface button extends uiElement { disabled?: boolean; label?: string; + command?: string; + toolbar?: string; } From 6361ebc58629820861d4a90e09b400c313a80293 Mon Sep 17 00:00:00 2001 From: Vern Jensen Date: Wed, 18 Nov 2015 13:01:57 -0800 Subject: [PATCH 2/2] Update ckeditor.d.ts Changed tabs to spaces to fix indentation in my previous changes. --- ckeditor/ckeditor.d.ts | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/ckeditor/ckeditor.d.ts b/ckeditor/ckeditor.d.ts index 4f5517ca0..efd0ecaf2 100644 --- a/ckeditor/ckeditor.d.ts +++ b/ckeditor/ckeditor.d.ts @@ -74,7 +74,7 @@ declare module CKEDITOR { function appendTo(element: string, config?: config, data?: string): editor; function appendTo(element: HTMLTextAreaElement, config?: config, data?: string): editor; function domReady(): void; - function dialogCommand(dialogName: string): void; + function dialogCommand(dialogName: string): void; function editorConfig(config: config): void; function getCss(): string; function getTemplate(name: string): template; @@ -557,36 +557,36 @@ declare module CKEDITOR { groups?: string[]; } - // Currently very incomplete. See here for all options that should be included: - // http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-fileTools_defaultFileName + // Currently very incomplete. See here for all options that should be included: + // http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-fileTools_defaultFileName interface config { - allowedContent?: string | boolean; - colorButton_enableMore?: boolean; + allowedContent?: string | boolean; + colorButton_enableMore?: boolean; colorButton_colors?: string; contentsCss?: string | string[]; - customConfig?: string; - extraPlugins?: string; - font_names?: string; + customConfig?: string; + extraPlugins?: string; + font_names?: string; font_defaultLabel?: string; fontSize_sizes?: string; fontSize_defaultLabel?: string; - height?: string | number; - language?: string; - on?: any; - plugins?: string; + height?: string | number; + language?: string; + on?: any; + plugins?: string; startupFocus?: boolean; - startupMode?: string; + startupMode?: string; removeButtons?: string; removePlugins?: string; toolbar?: any; toolbarGroups?: toolbarGroups[]; - toolbarLocation?: string; - readOnly?: boolean; + toolbarLocation?: string; + readOnly?: boolean; skin?: string; - width?: string | number; + width?: string | number; } - + interface feature { } @@ -750,7 +750,7 @@ declare module CKEDITOR { beforeInit?(editor: editor): any; init?(editor: editor): any; onLoad?(): any; - icons?: string; + icons?: string; } function add(name: string, definition?: IPluginDefinition): void; @@ -939,8 +939,8 @@ declare module CKEDITOR { interface button extends uiElement { disabled?: boolean; label?: string; - command?: string; - toolbar?: string; + command?: string; + toolbar?: string; }