Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it ok to pull request partial definition for CKEditor? #1827

Closed
ondrejsevcik opened this issue Mar 12, 2014 · 6 comments
Closed

Is it ok to pull request partial definition for CKEditor? #1827

ondrejsevcik opened this issue Mar 12, 2014 · 6 comments

Comments

@ondrejsevcik
Copy link
Contributor

Hi, I'm working on CKEditor definition file, but Its not complete yet. CKEditor is huge and I'm not sure if I ever finish it. It's usable but some parts are not finished. Is it ok to pull request this partial definition? Thanks

https://github.com/ondrejsevcik/ckeditor-typedefinitions

@johnnyreilly
Copy link
Member

Hi @ondrejsevcik,

I'd say that's fine. People are more likely to add to an existing definition that someone has started than they are to start from scratch. That's open source in the best sense of the term I think.

If you could try and include a tests file as well that would be greatly appreciated.

@ondrejsevcik
Copy link
Contributor Author

Thanks, I make test file and push :)

@Bartvds
Copy link
Collaborator

Bartvds commented Mar 12, 2014

@ondrejsevcik You could put a work-in-progress comment in the top of the definitions file. And maybe a link to this thread so people can message about it or drop a note if they decide to expand your partial.

@keyiis
Copy link
Contributor

keyiis commented Jul 4, 2016

@ondrejsevcik i installed ckeditor.d.ts,but not work,below is my work step
step1: npm install ckeditor --save
step2: typings install dt~ckeditor --save --global
step3: in ts file,i import ckeditor

import {CKEDITOR} from 'ckeditor';
error:[ts] Cannot find module 'ckeditor'.

@304NotModified
Copy link
Contributor

304NotModified commented Jul 4, 2017

FYI,

we needed to type myClass.getContentWindow().CKEDITOR, where getContentWindow() returns Window

We did it like this:

interface Window {
   CKEDITOR: typeof CKEDITOR;
}

@Enquier
Copy link
Contributor

Enquier commented Dec 14, 2022

For anyone interested in this, I have posted a further expansion of these types that should help to continue expanding and adding plugins

#63591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants