web/data/cubicweb.fckcwconfig-full.js
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 30 Jan 2015 15:53:32 +0100
changeset 10163 4001cfe2f44d
parent 8040 fca7fc7f5db8
permissions -rw-r--r--
[web/views] Stop mishandling the fieldset name in the default form renderer While not really documented, it is generally assumed that: * the fieldset is a user-visible string (much like a title), * it will be translated by whichever piece of code uses it. So: * fix AutomaticEntityForm to generate untranslated fieldset names, * fix FormRenderer to properly translate the fieldset name before rendering it, * stop using the field set (which may contain whitespace) as a CSS class name (the feature was unusable, so just drop it), * properly handle the colon as part of the translated fieldset name Closes #4881298

// cf /usr/share/fckeditor/fckconfig.js

FCKConfig.AutoDetectLanguage = false ;

FCKConfig.ToolbarSets["Default"] = [
    // removed : 'Save','NewPage','DocProps','-','Templates','-','Preview'
        ['Source'],
    // removed: 'Print','-','SpellCheck'
        ['Cut','Copy','Paste','PasteText','PasteWord'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    //['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
        '/',
    // ,'StrikeThrough','-','Subscript','Superscript'
        ['Bold','Italic','Underline'],
    // ,'-','Outdent','Indent','Blockquote'
        ['OrderedList','UnorderedList'],
    // ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
        ['Link','Unlink','Anchor'],
    // removed : 'Image','Flash','Smiley','PageBreak'
        ['Table','Rule','SpecialChar']
    // , '/',
    // ['Style','FontFormat','FontName','FontSize'],
    // ['TextColor','BGColor'],
    //,'ShowBlocks'
    // ['FitWindow','-','About']                // No comma for the last row.
] ;

// 'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','Form',
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','BulletedList','NumberedList','Table'] ;

FCKConfig.LinkUpload = false ;
FCKConfig.LinkBrowser = false ;
FCKConfig.ImageUpload = false ;
FCKConfig.ImageBrowser = false ;
FCKConfig.FlashUpload = false ;
FCKConfig.FlashBrowser = false ;