Liferay 6.2 adding a new ckeditor -


i want add new ckeditor liferay because need limit functionality of 1 available. however, not want change original 1 because migth later on need in different form.

how can add new ckeditor can used create structure webcontent articles? need create new theme liferay or this?

info: our liferay runs on jboss server

edit:

i have created hook overrides html\js\editor\ckeditor\ckconfig.jsp file , added

config.toolbar_mini = [      ['bold', 'italic', 'underline', 'strike'],      ['bulletedlist']  ];  

additionally, have changed lines in concerning liferay-ui:input editor in \html\portlet\journal\article\content.jsp file.

<div class="journal-article-component-container">     <liferay-ui:input-editor contentslanguageid="<%= validator.isnotnull(tolanguageid) ? tolanguageid : defaultlanguageid %>" editorimpl="<%= editor_wysiwyg_impl_key %>" name="articlecontent" toolbarset="mini" width="100%" /> </div> 

other toolbarset options available (e.g. phoneor simple ) have no effect. restarted jboss-server several times - still no effect.

also seems, changes made in html\js\editor\ckeditor\config.js file have absolutely no effect on (e.g alert("foo")).

you can make use of toolbarset attribute of lifeary-ui:input-editor tag.

you have override ckconfig.jsp using liferay-plugin hook add custom ckeditor configuration represent customr toolbar.

e.g. add below code ckconfig.jsp. config.toolbar_customtoolbar=[ ['fontsize', 'textcolor', 'bgcolor', '-', 'bold', 'italic', 'underline', 'strike']];

and while using lifeary-ui:input-editor tag, provide toolbarset attribute value toolbarset=custom-toolbar.

fyi: text formatter used map config.toolbar_xxxxx custom-toolbar value of toolbarset map customtoolbar (config.toolbar_customtoolbar).

hope helps.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -