wood burning stoves 2.0*
The moose likes JSF and the fly likes Problem with ice:inputRichText configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with ice:inputRichText configuration" Watch "Problem with ice:inputRichText configuration" New topic
Author

Problem with ice:inputRichText configuration

Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23
Hi, people.
I would like to change a configuration of ice:inputRichText component:

<ice:inputRichText toolbar="MyToolbar" customConfigPath="js/config.js"/>

My config.js:
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar = [['Bold','Italic', 'Underline'], ['Save']];
};

The result:
The component is not visibled and the log says WARNING: JSF1064:
Unable to find or serve resource, ckeditor/skins/v2/skin.js.

Do you know how to solve this? Thanks a lot!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Have you tried this:


Customer surveys are for companies who didn't pay proper attention to begin with.
Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23
Yes and I get the same warning and no component is visibled. And even if I then return to this:
<ice:inputRichText/>

it will not work at all! Could you show me some example - how to extend inputRichText by JavaScript?
Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23
I think, if I type anything (no matter what) to the attribute customConfigPath, it gets the same issue. Maybe a problem with dependencies?
 
 
subject: Problem with ice:inputRichText configuration