Using jQuery in ckeditor within Liferay portal -
does know, how make jquery work in ckeditor plugin ? created plugin , loaded in ckconfig.jsp
ckeditor.config.extraplugins = 'myplugin';
but problem jquery-1.4.4.min load liferay-plugins.xml (or in theme entire portal) isn't loaded in global context when plugin executes. can use jquery everywhere within portal successfully, not in ckeditor plugin. initialization of ckeditor kinda complex , don't see how it.
the ckeditor.jsp, included tag, contains entire html document etc. third party javascripts, available ckeditor, included in ckeditor.jsp's head section.
so should follows (ckeditor.jsp):
<script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
and jquery available ckeditor plugins.
Comments
Post a Comment