Forums de discussion

Adding a plugin to ckeditor

Nicola Grippaldi, modifié il y a 12 années.

Adding a plugin to ckeditor

New Member Publications: 10 Date d'inscription: 13/11/11 Publications récentes
I tried to add the HTML5 Video plugin for ckeditor, and I executed the steps as videoplugin
1. Extract the contents of the file into the "plugins" folder of CKEditor.
2. In the CKEditor configuration file (config.js) added the following code:
CKEDITOR.editorConfig = function( config ){
config.extraPlugins = 'video';
};

then I changed /ROOT/html/js/editor/ckeditor/ckconfig.jsp adding 'Video' in the toolbar
CKEDITOR.config.toolbar_liferay = [
...........
['Image', 'Flash', 'Table', '-', 'Smiley', 'Video', 'SpecialChar']
];
but I have no Video button.

Any suggestion?
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Adding a plugin to ckeditor

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
I just did the followings:
1. Add ['Video'] to CKEDITOR.config.toolbar_liferayArticle in ckconfig.jsp
2. Add 'video' to ckeditor.js line #21 to plugin:'about, ...... 'video',....
3. Extracted downloaded file to plugin
4. Restart Tomcat

Pièces jointes:

thumbnail
Juan Gonzalez P, modifié il y a 12 années.

RE: Adding a plugin to ckeditor

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Nicola Grippaldi:
I tried to add the HTML5 Video plugin for ckeditor, and I executed the steps as videoplugin
1. Extract the contents of the file into the "plugins" folder of CKEditor.
2. In the CKEditor configuration file (config.js) added the following code:
CKEDITOR.editorConfig = function( config ){
config.extraPlugins = 'video';
};

then I changed /ROOT/html/js/editor/ckeditor/ckconfig.jsp adding 'Video' in the toolbar
CKEDITOR.config.toolbar_liferay = [
...........
['Image', 'Flash', 'Table', '-', 'Smiley', 'Video', 'SpecialChar']
];
but I have no Video button.

Any suggestion?


Take a look at this issue:

http://issues.liferay.com/browse/LPS-25955

and this pull request:

https://github.com/sergiogonzalez/liferay-portal/pull/144

Many things left to be done, but it works for Liferay 6.1 builtin Documents&Media html5 preview :-)
Nicola Grippaldi, modifié il y a 12 années.

RE: Adding a plugin to ckeditor

New Member Publications: 10 Date d'inscription: 13/11/11 Publications récentes
hi Hitoshi
thank you very much, it works

hi Juan
I've just started off with videos, but this seems a very nice idea
thumbnail
Ahamed Sakir, modifié il y a 11 années.

RE: Adding a plugin to ckeditor

Regular Member Publications: 129 Date d'inscription: 22/08/08 Publications récentes
Hi Hitoshi Ozawa,
How to implement Table of Contents(TOC) feature in CKEditor as Wiki Creole ?

Regards
Sakir
Diogo Salazar, modifié il y a 9 années.

RE: Adding a plugin to ckeditor

Junior Member Publications: 51 Date d'inscription: 28/08/13 Publications récentes
Hi guys, good afternoon!

What are the steps to add a plugin to CKEditor in Liferay 6.2?
It would be great to have a reply here and also an article at dev.liferay.com.

Thank you.
Taruchit Goyal, modifié il y a 5 années.

RE: Adding a plugin to ckeditor

Junior Member Publications: 60 Date d'inscription: 16/03/18 Publications récentes

Hello Nicola,

Please share the steps followed for getting video functionality button in ckeditor. 
I am unable to figure out he location at which code is to be appended in ckeditor.js.

I have Liferay 7; thus does the steps change from the ones listed above?

Thanks 
Taruchit