mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added some missing definitions
Added some mkissing elements, such as CKEDITOR.config.allowedContent, .width, and more.
This commit is contained in:
42
ckeditor/ckeditor.d.ts
vendored
42
ckeditor/ckeditor.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user