web/data/cubicweb.fckcwconfig-full.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 Sep 2012 13:53:59 +0200
changeset 8538 00597256de18
parent 8040 fca7fc7f5db8
permissions -rw-r--r--
[request/session] refactor language handling: don't attempt to sync web/repo languages This decouple thing and make code easier to understand. Previous behaviour was fine w/ validation error that were translated on the server side, but isn't satisfying for notification and all. Now: * translations should be done on the ui side (see previous validation error refactoring) * consistent behaviour: each side (web/repo) is responsible to deal with its request/session of language, no weird interaction between them on this topic * drop on the way the 'session properties' api, used only for that matter. -> much simpler/cleaner/saner api The thing missing being a way for user to tell "My favorite language is xxx but I also want cw to consider my http language header)

// 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 ;