Masquage du bouton « Image » de ckeditor.
[ckeditor.git] / skins / ckeditor / config.js
index 322d3f2..6393de7 100644 (file)
@@ -20,7 +20,7 @@ CKEDITOR.editorConfig = function( config )
                { name: 'basicstyles',  items : [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },\r
                { name: 'paragraph',    items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },\r
                { name: 'links',                items : [ 'Link', 'Unlink', 'Anchor' ] },\r
-               { name: 'insert',               items : [ 'PlinnImage', 'Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] },\r
+               { name: 'insert',               items : [ 'PlinnImage', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] },\r
        ];\r
        \r
        // context menu\r
@@ -30,8 +30,10 @@ CKEDITOR.editorConfig = function( config )
        config.contentsCss = CKEDITOR.basePath + 'global_plinn_style.css';\r
        \r
        config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector';\r
+       CKEDITOR.config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Type=Image&Connector=connectors/plinn/connector';\r
        config.filebrowserWindowHeight = 600;\r
        config.filebrowserWindowWidth = 801;\r
        config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector';\r
+       config.imageMaxDefaultDimension = 500 ; // image inserted will be cropped at this size.\r
        config.extraPlugins = 'plinn_image';\r
 };
\ No newline at end of file