-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
Freshly
-
ckez-3.6.0.1
When ZK is used in stand-alone environment, everything works as expected, however, if using it in (as example) Liferay Portal 6.0+, CKeditor component is broken.
This is because Liferay also uses jQuery and initialies it's own version of it using default namespace jQuery. Then ZK takes it's turn and loads plugins. CKeditor
performs this line of code in it's jQuery adapter (/web/js/ckez/ext/CKeditor/_source/adapters/jquery.src.js):
var jQuery = window.jQuery;
which effectively initializes CKeditor in different namespace than ZK itself, since ZK uses jq namespace. The correct code which works in both stand-alone and
Liferay Portal 6.0+ environments is:
var jQuery = window.jq;
It would be really nice if you add this fix in future CKeditor release (currently I'm making fixed version for each CKeditor release myself).