- CKEditor would use very limited part of jQuery - only basic DOM methods, some tools maybe.
- CKEditor needs very specific DOM methods. The vast majority of features implemented in
CKEDITOR.dom.*
are not available in jQuery. Huge range API, walker, iterator, editing-specific DOM traversal methods, etc. (really - >75% ofdom.*
) - all of that would have to be implemented. - I don't know how jQuery's API can be extended, but I guess that CKEditor's extensions would look ridiculous. Overall effect could not be good.
- CKEditor deals with extreme browser bugs (
contenteditable
FTW!) and very uncommon DOM operations and algorithms, so even existing jQuery's features may not be suitable in some cases. Currently we have full control over methods' implementation, so we may introduce necessary tweaks. - CKEditor rarely works on collections of elements - jQuery API's biggest feature would not be consumed. Moreover - it would be a performance and memory cost.
- jQuery would become dependency - CKEditor hasn't got any dependency at the moment.
- Mirrored
CKEDITOR.htmlParser.*
implementation of pseudo-DOM would have to be reimplemented and would become unnecessarily more complex. - Surprisingly, CKEditor rewritten with jQuery as a dependency could grow in terms of code size. I mean - it would definitely grow combining CKEditor + jQuery size. But even without it, its size could be bigger. Why? Because lost control over every piece of code would result in less optimum solutions.
- It would be an enormous effort to rewrite CKEditor with jQuery.
Created
January 4, 2014 21:20
-
-
Save Reinmar/8260874 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment