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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -