Rewrited modal/cke idea:
- Only modal content is shown inth CKE window.top - not whole modal with it behavior
- Created new template cke.html only for CKEEDITOR page.
- Created new cke.js logic only for above template.
- Cleaned up modal.html template.
- Moved smiliar html parts to _partials and _body.
Refactored modal.js
- code is for modal only :)
- Fixed re-binding modal one more time. Events are binded only once.
- Less variables, less code instructions, added more human readable comments.
TODO
- modal.js can be improved still.
- cke.js has similiar functionality like modal.js.