... {noformat} X:\whereever-you-installed-lams-directory\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\fckeditor\editor\plugins {noformat} _Note that X: is the drive directory and of course "whereever-you-installed-lams-directory" is the whereever you installed LAMS directory :-)_ Please change them accordingly. In Unix/Linux: {noformat} /whereever-you-installed-lams-directory/jboss-4.0.2/server/default/deploy/lams.ear/lams-central.war/fckeditor/editor/plugins {noformat} After you unzipped the file, there are two files you would need to modify. 1. *kaltura.jsp* located at {noformat} /whereever-you-installed-lams-directory/jboss-4.0.2/server/default/deploy/lams.ear/lams-central.war/fckeditor/editor/plugins/kaltura/kaltura.jsp {noformat} Here you should specify parameters specific for your actual Kaltura account. * KALTURA_SERVER - kaltura server you're going to use; * PARTNER_ID - your actual partner id To find it out log in to Kaltura Management Console(KMC) --> Settings tab --> Integration Settings, get the Partner ID parameter; * SUB_PARTNER_ID - your actual subparner id KMC --> Settings tab --> Integration Settings, get the Sub Partner ID parameter; * USER_SECRET - your actual user secret KMC --> Settings tab --> Integration Settings, get the User Secret parameter * KCW_UI_CONF_ID - ui_conf_id of Kaltura Contribution Wizard(KCW); KMC --> Content tab --> Upload --> Upload, using FireBug find its data parameter. It will be smth similar to http://kaltura/kcw/ui_conf_id/4421518 and just grab that last number. _(However, in case you use kaltura.com account you should use 1000741 as KCW_UI_CONF_ID)_ * KDP_UI_CONF_ID - ui_conf_id of Kaltura Dynamic Player(KDP); KMC --> Studio tab --> Find player with no share button and grab its ID _BTW the file already contains default values, but they are correct only for fresh install of Kaltura CE version 4.0._ 2. *fckconfig_custom.js* If you are in Windows, look for this file and open it with Notepad: {noformat} X:\...\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\includes\javascript\fckconfig_custom.js {noformat} This file should look like similar to this: {noformat} FCKConfig.ToolbarSets["Default"] = [ ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], ['Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About'] ] ; FCKConfig.ToolbarSets["Default-Learner"] = [ ['Preview','PasteWord'], ['Undo','Redo'], ['Bold','Italic','Underline', '-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['About'], ['TextColor','BGColor'], ['Table','Rule','Smiley','SpecialChar'], ['FontFormat','FontName','FontSize'] ] ; FCKConfig.ToolbarSets["Custom-Wiki"] = [ ['Preview','PasteWord'], ['Undo','Redo'], ['Bold','Italic','Underline', '-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['WikiLink','Link','Image'], ['About'], ['TextColor','BGColor'], ['Table','Rule','Smiley','SpecialChar'], ['FontFormat','FontName','FontSize'] ] ; FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../../css/defaultHTML_learner.css' ; FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ; FCKConfig.FirefoxSpellChecker = true; FCKConfig.BrowserContextMenuOnCtrl = true; FCKConfig.DefaultLinkTarget = "_blank"; FCKConfig.TemplatesXmlPath = FCKConfig.BasePath + '../../www/htmltemplates.xml'; FCKConfig.FontFormats = 'div;h1;h2;h3;h4;h5;h6;pre;address;p' ; FCKConfig.EnterMode = 'div' ; FCKConfig.Plugins.Add('wikilink', 'en', FCKConfig.BasePath + '../../tool/lawiki10/'); {noformat} I know, it looks like Chinese to me too ;-) But don't panic, Let's look at it one by one. *First part:* {noformat} FCKConfig.ToolbarSets["Default"] = [ ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], ['Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About'] ] ; ...
|
... As you can probably figure out by now, the "Source" button in the picture, corresponds to the first 'Source' button in the code... and so on and so on. Therefore what we need to do to add the Kaltura button is to include it in the list code. As follows: {noformat} FCKConfig.ToolbarSets["Default"] = [ ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], ['Kaltura','Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About'] ] ; ... {noformat} As you can see, I have put it before the 'Image' button in the menu. *Second part:* Now that we have included in the menu, we need to add just one more line at the bottom of the document: {noformat} ... FCKConfig.TemplatesXmlPath = FCKConfig.BasePath + '../../www/htmltemplates.xml'; FCKConfig.FontFormats = 'div;h1;h2;h3;h4;h5;h6;pre;address;p' ; FCKConfig.EnterMode = 'div' ; FCKConfig.Plugins.Add('wikilink', 'en', FCKConfig.BasePath + '../../tool/lawiki10/'); FCKConfig.Plugins.Add('kaltura', 'en'); {noformat} See, I have added this last line: {noformat} FCKConfig.Plugins.Add('kaltura', 'en'); {noformat} And that's it :-)
|