Skip to content

Instantly share code, notes, and snippets.

@stijnherreman
Created August 23, 2013 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stijnherreman/6316394 to your computer and use it in GitHub Desktop.
Save stijnherreman/6316394 to your computer and use it in GitHub Desktop.
CKEditor typings
declare module CKEditor
{
interface CKEDITOR
{
config: config;
editor: editor;
instances: { [name: string]: editor }
replaceAll(): void;
replaceAll(className: string): void;
replaceAll(fn: (textarea: HTMLTextAreaElement, config: config) => void): void;
}
interface config
{
filebrowserBrowseUrl: string;
filebrowserImageBrowseUrl: string;
toolbar: any;
}
interface editor
{
name: string;
updateElement(): bool;
}
}
declare var CKEDITOR: CKEditor.CKEDITOR;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment