Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Integrating YouTube Plugin for FCK Editor in Liferay

Integrating YouTube Plugin for FCK Editor in Liferay #

Download Latest version YouTube Plugin:(From SourceForge)

http://sourceforge.net/project/showfiles.php?group_id=215257&package_id=260057&release_id=651317

Steps to Integrate YouTube Plugin in FCK Editor:

  • Copy the YouTube Folder under (war)\html\js\editor\fckeditor\editor\plugins\ Folder.
  • Add the Plugin by copying the below config line to (war)\html\js\editor\fckeditor\fckconfig.js File.
  • FCKConfig.Plugins.Add( 'youtube', 'en,ja' ) ;
  • Update the Default ToolBar set in Liferay fckconfig.js file, as below:

FCKConfig.ToolbarSets["Default"]= 'Image', 'Flash', 'YouTube'

Your done with Integrating YouTube Plugin in Liferay FckEditor.

(Note: Adding other FCKEditor Plugin involves same steps which are spcificied above, Only Plugin Names need to be changed)

0 Attachments
23235 Views
Average (0 Votes)
The average rating is 0.0 stars out of 5.
Comments
Threaded Replies Author Date
Hi, In Liferay 5.2.2, I also need to modify... Francesc Domenech May 6, 2009 3:48 AM
Good. Thanks. It would be better to configure... Jonas Yuan September 29, 2009 5:58 AM
Hi, has anyone a comparable solution for ckeditor? Anton Finders January 18, 2011 5:42 AM
I just stumbled upon your blog and wanted to... Mathew David May 23, 2011 12:03 AM
Hey Jonas, I followed you points but youtube is... Manikandan S August 4, 2011 5:53 AM
Hi Jonas Yuan, we tried your below solution in... Ranga Rao Bobbili January 22, 2012 9:42 PM

Hi,
In Liferay 5.2.2, I also need to modify (war)\html\js\editor\fckeditor\fckconfig.jsp
Posted on 5/6/09 3:48 AM.
Good. Thanks. It would be better to configure FCKEditor with YouTube plugin in $PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.jsp like
• Download the latest version of YouTube plugin as a zip file at http://sourceforge.net/project/showfiles.php?group_id=215257&package_id=260057&r­elease_id=651317
• Unzip the zip file into $PORTAL_ROOT_HOME/html/js/editor/fckeditor/editor/plugins
• Add following line after the line FCKConfig.SpellChecker = 'SCAYT' ; in the configuration file $PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.jsp
FCKConfig.Plugins.Add( 'youtube', 'en,ja' ) ;
• Update the tool bar set "liferay" in the configuration file $PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.jsp as follows.
FCKConfig.ToolbarSets["liferay"] = [
<!-- ignore details -->
['Image','Flash','YouTube','Table','-','Smiley','SpecialChar']
] ;

As shown in above code, the YouTube plugin has been added between “Flash” and “Table”. After refreshing, you would see the icon “Insert/Edit YouTube” next to the icon “Insert/Edit Flash”
Posted on 9/29/09 5:58 AM.
Hi,
has anyone a comparable solution for ckeditor?
Posted on 1/18/11 5:42 AM in reply to Jonas Yuan.
I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. 70-291 dumps | 70-433 dumps | 312-50 dumps | E20-515 dumps | 646-671 dumps | 642-642 dumps | HP0-D07 dumps | 1Y0-A24 dumps | 352-001 dumps | 1z0-051 dumps | 642-437 dumps | 642-637 dumps |
Posted on 5/23/11 12:03 AM.
Hey Jonas,
I followed you points but youtube is not affecting in the fckeditor.(I checked in web content portlet).
I Unzipped the you Tube plugin in $PORTAL_ROOT_HOME/html/js/editor/fckeditor/editor/plugins.
I added, FCKConfig.Plugins.Add( 'youtube', 'en,ja' ) ; in $PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.js.
and added the following line in PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.js.
FCKConfig.ToolbarSets["li­feray"] = [
<!-- ignore details -->
['Image','Flash','YouTube','Table','-','Smiley','SpecialChar']
] ;
But no luck.. What went wrong for me?
Posted on 8/4/11 5:53 AM in reply to Mathew David.
Hi Jonas Yuan, we tried your below solution in liferay version 6.0.6 and not working.

could you please provide me the solution for Liferay 6.0.6.

Regards,
Ranga Rao
Posted on 1/22/12 9:42 PM.