Security Level: Jimmy
- load the attached zul
- insert a comment with the context menu
TypeError: jq(...).cleditor is not a function
Because js file loading order might be different from time to time, this issue sometimes doesn't happen. You need to reload the page several times to reproduce it.
- the jQuery object passed to CLEditor plugin might be another version of jQuery instead of zk bundled jQuery depending on js file loading order. So the function cleditor() might not be availiable on jq
always pass jq to CLEditor plugin to avoid being overridden by another jQuery library. In the last line of jqery.cleditor.js, replace jQuery with jq. Plese refer to attached jqery.cleditor.js
call noConflict(). Please refer to jq-noConflict.js