Intregration of Cute Editor with CS2007

Last post 03-06-2008, 8:47 AM by JeffStull. 4 replies.
Sort Posts: Previous Next
  •  02-22-2008, 11:17 AM 37280

    Intregration of Cute Editor with CS2007

    In Community Server 2007, a user is assigned a specific area of file storage to upload content to so that when they are writing a Post they have access ONLY to their file storage area to include photos, videos etc.
     
    How can I point the instance of Cute Editor that they are using to their specific area when they upload content?
     
    Thanks a lot for your help.  I am totally impressed with this product.
     
     
     
     
     
     
    Filed under: ,
  •  02-22-2008, 12:11 PM 37287 in reply to 37280

    Re: Intregration of Cute Editor with CS2007

    JeffStull,
     
    You need to modify the provider (CuteEditorWraper\CuteEditorWraper.cs) to achieve this.
     
    For example:
     
       string folder = "my file storage";

       Editor1.Setting["security:ImageGalleryPath"]=
       Editor1.Setting["security:MediaGalleryPath"]=
       Editor1.Setting["security:FlashGalleryPath"]=
       Editor1.Setting["security:FilesGalleryPath"]=
        folder;
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-22-2008, 2:15 PM 37297 in reply to 37287

    Re: Intergration of Cute Editor with CS2007

    Adam,
     
    I know how to get the CS2007 Folder Value for each of my Users.
     
    I looked at the CuteEditorWrapper.cs file and am at a loss as to where (section) to begin coding in there.
     
    Should I be working with the "ApplyConfigurationOption" function?  If so, do I need to be doing something with the "AddParsedSubObject" as well.
     
    Also are the commands below the exact syntax of those Editor settings you mentioned:
     
       Editor1.Setting["security:ImageGalleryPath"]=Value
       Editor1.Setting["security:MediaGalleryPath"]=Value
       Editor1.Setting["security:FlashGalleryPath"]=Value
       Editor1.Setting["security:FilesGalleryPath"]=Value
     
    Furthermore, I am assumiing that I do nothing with the various security.config files with regard to these settings once coded in the wrapper.
     
    Is this correct?
     
     
    Thanks.
    Filed under: ,
  •  02-22-2008, 11:29 PM 37307 in reply to 37297

    Re: Intergration of Cute Editor with CS2007

    JeffStull,
     
    In line 124, please add the following code:
     
       string mystorage="somepath";
     
       base.Setting["security:ImageGalleryPath"]=mystorage;
       base.Setting["security:MediaGalleryPath"]=mystorage;
       base.Setting["security:FlashGalleryPath"]=mystorage;
       base.Setting["security:FilesGalleryPath"]=mystorage;
     
    >>Furthermore, I am assumiing that I do nothing with the various security.config files with regard to these settings once coded in the wrapper.
     
    The above setting will overwrite the settings in the security.config files.
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-06-2008, 8:47 AM 37622 in reply to 37307

    Re: Intergration of Cute Editor with CS2007

    Adam,
     
    I wanted to get back to you and thank you for your help on this.
     
    I did get it working... the code snippet you provided above worked perfectly.  As it turns out, the challenge was getting the CS2007 value for the "somepath" variable.
     
    The success of this project now more tightly intergrates Cutesoft Editor with CS2007.
     
    Thanks again!
    Filed under: ,
View as RSS news feed in XML