Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author


 
Search: 

11: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
In response to 9 04/06/11 09:58 PM
[ Reply | Forward ]
Hi BU,

Once you have your tool ready to be deployed, I would suggest you select the "explode war" task. That will copy deploy your tool into the lams.ear directory and of course explode it (open the war file).

Then if you do changes in the jsps, you can synchronise deploy and they would get copy over to jboss and you won't need to stop it.

However, if you do change in any .java files, well... you'll need to restart jboss.

I'm not so sure if there's a way to make .jar changes while Jboss is running. But I don't think so.

Hope it helps.

Ernie

Posted by Ernie Ghiglione

12: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
By: b u
In response to 11 04/12/11 12:35 AM
[ Reply | Forward ]
Hi Ernie,

Thank you so much for that tip. The custom tool is now visible on the Author Tab. It is however not visible on the FCK Editor.
Also when I build I get a build failed, file not found exception.

What should I perform next to make it show up on FCK Editor?

Posted by b u

13: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
In response to 12 04/12/11 04:17 AM
[ Reply | Forward ]
I would suggest to look at the code from other tools to see how the fckeditor tag works.

Also have a read at these pages:

http://wiki.lamsfoundation.org/display/lams/LAMS+Custom+Tags
http://wiki.lamsfoundation.org/pages/viewpage.action?pageId=1181
http://wiki.lamsfoundation.org/display/lams/Tag+Library+Definitions

Thanks,

Ernie

Posted by Ernie Ghiglione

14: Re: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
By: b u
In response to 13 04/12/11 11:37 PM
[ Reply | Forward ]
Hi Ernie,

I have looked at those links. I have done the following:
- modified fckconfig_custom.js - added the name of my tool in FCKConfig.ToolbarSets["Default"]. I also added FCKConfig.Plugins.Add('mytool', 'en');. I have rebuilt the tool build.xml and when I open up the FCK Editor, it is not displayed and I also get error "Unknown toolbar item". How do I resolve this?

Posted by b u

15: Re: Re: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
In response to 14 04/13/11 09:07 AM
[ Reply | Forward ]
Ah! Right! Finally I get what you are trying to do... sorry it has taken me so long. I thought you were coding a new LAMS tool, but instead you are trying to add a plugin to the FCKEditor.

Have a look at this skype plugin. If you follow the same steps, you'll be able to do it with your tool.

http://wiki.lamsfoundation.org/display/lamsdocs/FCKEditor+Skype+Plugin

Also, make sure -before you try it, to clear your browser cache!

Thanks,

Ernie

Posted by Ernie Ghiglione

16: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
By: b u
In response to 15 04/14/11 08:57 PM
[ Reply | Forward ]
Hi Ernie,

Now it is displayed on the Text Editor, thanks for your help there. For some reason I withinn the fckeditor/plugins/ directory, the diractory for my custom tool was not being deployed. Once this directory existed - it worked. BUT ...I get javascript errors when I click on my cuatom tool. I get Error: Invalid Argument. I can't find what is causing this.

Posted by b u

17: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
By: b u
In response to 16 04/14/11 11:27 PM
[ Reply | Forward ]
I also get this javascript error:
http:/mysite/lams/tool/mylamstool/authoring/init.do?author

when I launch my tool

Posted by b u

18: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Steps to create a tool and integrate in the Author
By: b u
In response to 17 04/14/11 11:43 PM
[ Reply | Forward ]
Sorry please refer to this url instead of the previous one I posted.

I also get this javascript error:
http:/mysite/lams/tool/mylamstool/authoring/init.do?mode=author

Posted by b u

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum