/// <summary>
 /// Initializes a new instance of the <see cref="MediaManagerModuleDescriptor" /> class.
 /// </summary>
 public MediaManagerModuleDescriptor(ICmsConfiguration cmsConfiguration) : base(cmsConfiguration)
 {
     mediaJsModuleIncludeDescriptor        = new MediaManagerJsModuleIncludeDescriptor(this);
     mediaUploadModuleIncludeDescriptor    = new MediaUploadJsModuleIncludeDescriptor(this);
     imageEditorModuleIncludeDescriptor    = new ImageEditorJsModuleIncludeDescriptor(this);
     fileEditorModuleIncludeDescriptor     = new FileEditorJsModuleIncludeDescriptor(this);
     mediaHistoryJsModuleIncludeDescriptor = new MediaHistoryJsModuleIncludeDescriptor(this);
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaManagerModuleDescriptor" /> class.
        /// </summary>
        public MediaManagerModuleDescriptor(ICmsConfiguration cmsConfiguration) : base(cmsConfiguration)
        {
            mediaJsModuleIncludeDescriptor        = new MediaManagerJsModuleIncludeDescriptor(this);
            mediaUploadModuleIncludeDescriptor    = new MediaUploadJsModuleIncludeDescriptor(this);
            imageEditorModuleIncludeDescriptor    = new ImageEditorJsModuleIncludeDescriptor(this);
            fileEditorModuleIncludeDescriptor     = new FileEditorJsModuleIncludeDescriptor(this);
            mediaHistoryJsModuleIncludeDescriptor = new MediaHistoryJsModuleIncludeDescriptor(this);

            // Register images gallery custom option: album
            CustomOptionsProvider.RegisterProvider(MediaManagerFolderOptionProvider.Identifier, new MediaManagerFolderOptionProvider());
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaManagerModuleDescriptor" /> class.
        /// </summary>
        public MediaManagerModuleDescriptor(ICmsConfiguration cmsConfiguration) : base(cmsConfiguration)
        {
            mediaJsModuleIncludeDescriptor        = new MediaManagerJsModuleIncludeDescriptor(this);
            mediaUploadModuleIncludeDescriptor    = new MediaUploadJsModuleIncludeDescriptor(this);
            imageEditorModuleIncludeDescriptor    = new ImageEditorJsModuleIncludeDescriptor(this);
            fileEditorModuleIncludeDescriptor     = new FileEditorJsModuleIncludeDescriptor(this);
            mediaHistoryJsModuleIncludeDescriptor = new MediaHistoryJsModuleIncludeDescriptor(this);
            CategoryAccessors.Register <MediaFileCategoryAccessor>();
            CategoryAccessors.Register <MediaImageCategoryAccessor>();

            // Register images gallery custom option: album
            CustomOptionsProvider.RegisterProvider(MediaManagerFolderOptionProvider.Identifier, new MediaManagerFolderOptionProvider());
            CustomOptionsProvider.RegisterProvider(MediaManagerImageUrlOptionProvider.Identifier, new MediaManagerImageUrlOptionProvider());

            Events.MediaManagerEvents.Instance.MediaFileDeleted += Instance_MediaFileDeleted;
        }