ckfinder插入的图像未在outlook中打开

时间:2016-07-12 00:07:50

标签: .net ckeditor ckfinder

我正在使用ckeditor和ckfinder创建我使用Lyris List Manager发送的文本。如果我使用ckeditor和ckfinder插入图像,它会在WYSIWYG编辑器中插入它,但是当列表管理器发出文本时,它似乎不会呈现?

但是,如果我查看outlook中的文件来源,并将其粘贴到Web浏览器,它会下载该文件!它下载它的事实意味着它是可访问的。

不确定是什么问题?这是src的样子URL

附件是展望的Picture of outlook

这些是配置更改

    public ConnectorBuilder ConfigureConnector()
    {
        var connectorBuilder = new ConnectorBuilder();
        connectorBuilder
            .SetRequestConfiguration(
                (request, config) =>
                {

                    //config.AddProxyBackend("local", new LocalStorage(@"MyFiles"));
                    var userName = request.Principal?.Identity?.Name;
                    var userFilePath = request.Principal?.UserSaveFilePath();

                    if (userName != null)
                    {      
                        var folderName = userName;
                        var mediaPath = ConfigurationManager.AppSettings["MediaPath"];
                        var thumbsMediaPath = ConfigurationManager.AppSettings["ThumbsMediaPath"];
                        config.AddProxyBackend("local", new LocalStorage(mediaPath));
                        config.AddProxyBackend("thumbs", new LocalStorage(thumbsMediaPath));
                        config.AddResourceType("private", resourceBuilder => resourceBuilder.SetBackend("local", userFilePath));
                        config.SetThumbnailSizes(new SizeAndQuality(100, 100, new ImageQuality(80)));
                        config.SetThumbnailBackend("thumbs", "thumbs");                                 

                        config.AddAclRule(new AclRule(
               new StringMatcher("*"), new StringMatcher("/"), new StringMatcher("*"),
               new Dictionary<Permission, PermissionType>
               {
                     { Permission.FolderView, PermissionType.Allow },
                     { Permission.FolderCreate, PermissionType.Allow },
                     { Permission.FolderRename, PermissionType.Allow },
                     { Permission.FolderDelete, PermissionType.Allow },

                     { Permission.FileView, PermissionType.Allow },
                     { Permission.FileCreate, PermissionType.Allow },
                     { Permission.FileRename, PermissionType.Allow },
                     { Permission.FileDelete, PermissionType.Allow },


                     { Permission.ImageResize, PermissionType.Allow },
                     { Permission.ImageResizeCustom, PermissionType.Allow }
               }));
                    }
                })

0 个答案:

没有答案