improved Rich Text selection list, changed CS and Wiki to use it
This commit is contained in:
parent
7901eb9642
commit
ac3070956d
6 changed files with 32 additions and 27 deletions
|
|
@ -414,8 +414,6 @@ sub definition {
|
|||
($useKarma? (karmaRank=>$i18n->get('karma rank')) : ()),
|
||||
);
|
||||
|
||||
my $richEditorOptions = $session->db->buildHashRef("select distinct(assetData.assetId), assetData.title from asset, assetData where asset.className='WebGUI::Asset::RichEdit' and asset.assetId=assetData.assetId order by assetData.title");
|
||||
|
||||
my %properties;
|
||||
tie %properties, 'Tie::IxHash';
|
||||
%properties = (
|
||||
|
|
@ -612,12 +610,11 @@ sub definition {
|
|||
hoverHelp=>$i18n->get('filter code description'),
|
||||
},
|
||||
richEditor =>{
|
||||
fieldType=>"selectBox",
|
||||
fieldType=>"selectRichEditor",
|
||||
defaultValue=>"PBrichedit000000000002",
|
||||
tab=>'display',
|
||||
label=>$i18n->get('rich editor'),
|
||||
hoverHelp=>$i18n->get('rich editor description'),
|
||||
options=>$richEditorOptions,
|
||||
},
|
||||
attachmentsPerPost =>{
|
||||
fieldType=>"integer",
|
||||
|
|
|
|||
|
|
@ -181,9 +181,6 @@ sub definition {
|
|||
my $definition = shift;
|
||||
my $i18n = WebGUI::International->new($session, 'Asset_WikiMaster');
|
||||
|
||||
# BUGGO: duplication with Collaboration; move this into WebGUI::Asset::RichEdit
|
||||
my $richEditorOptions = $session->db->buildHashRef("select distinct(assetData.assetId), assetData.title from asset, assetData where asset.className='WebGUI::Asset::RichEdit' and asset.assetId=assetData.assetId order by assetData.title");
|
||||
|
||||
my %properties;
|
||||
tie %properties, 'Tie::IxHash';
|
||||
%properties =
|
||||
|
|
@ -200,8 +197,7 @@ sub definition {
|
|||
hoverHelp => $i18n->get('groupToAdminister hoverHelp'),
|
||||
label => $i18n->get('groupToAdminister label') },
|
||||
|
||||
richEditor => { fieldType => 'selectBox',
|
||||
options => $richEditorOptions,
|
||||
richEditor => { fieldType => 'selectRichEditor',
|
||||
defaultValue => 'PBrichedit000000000001',
|
||||
tab => 'display',
|
||||
hoverHelp => $i18n->get('richEditor hoverHelp'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue