This is a migrated thread and some comments may be shown as answers.

EditModes, MaxImagesSize, and ImagesFilters

4 Answers 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael Loffland
Top achievements
Rank 1
Michael Loffland asked on 24 Mar 2009, 08:20 PM
I am using the RadEditorProvider (04.09.01) for Dotnetnuke (4.9) ...

I have the following in my web.config file in the providers section:

<add   
name="RadEditorProvider"   
type="Telerik.DNN.Providers.RadEditorProvider"   
EditModes="Design,HTML"   
ToolsFile="~/DesktopModules/TelerikWebUI/CNdefault.xml"   
DialogHandlerUrl="~/DesktopModules/TelerikWebUI/RadEditorProvider/Telerik.Web.UI.DialogHandler.aspx"   
ContentAreaCssFile="~/DesktopModules/TelerikWebUI/Custom.css"   
providerPath="~/DesktopModules/TelerikWebUI"   
AutoCreatePaths="true"   
EnableUploadUserFolders="true"   
ImagesPaths="ForumImages"   
MaxImageSize="112000"   
ImagesFilters="*.gif,*.png,*.jpg"   
/>  




The toolsfile, dialoghandlerurl, autocreatepaths, enableUploadUserFolders, and ImagesPaths are working as expected....

But MaxImageSize and ImagesFilters has no effect on the RadEditor when a user goes to upload an image file via the Image Manager... what am I missing?

Thanks!
Mike

4 Answers, 1 is accepted

Sort by
0
Michael Loffland
Top achievements
Rank 1
answered on 24 Mar 2009, 08:21 PM
Nor is the EditModes working... it just always shows all three modes... I don't want preview to show.

0
Stanimir
Telerik team
answered on 26 Mar 2009, 12:55 PM
Hello Michael,

What I suggest you is, remove the EditModes="Design,HTML" attribute from the <add> element in the web.config and set it in the ConfigFile.xml, which is located in DesktopModules\TelerikWebUI\RadEditorProvider folder.
Just add the following code
<property name="EditModes">Design,HTML</property> 



Best wishes,
Stanimir
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Michael Loffland
Top achievements
Rank 1
answered on 26 Mar 2009, 02:21 PM
<configuration> 
  <property name="Skin">Telerik</property> 
  <property name="EditModes">Design,HTML</property> 
  <property name="MaxImageSize">100000</property> 
  <property name="ImagesFilters">*.gif,*.png,*.jpg</property> 
</configuration> 
Perfect... got EditModes and MaxFileSize to work by using configfile.xml.

But ImagesFilters is not working in the web.config file... or the configFile.xml.

Am I using the wrong attribute or something? Every time I go to upload an image via the Image Manager is gives the default file extensions allowed:

File extensions allowed
*.gif, *.xbm, *.xpm, *.png, *.ief, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif, *.rgb, *.g3f, *.xwd, *.pict, *.ppm, *.pgm, *.pbm, *.pnm, *.bmp, *.ras, *.pcd, *.cgm, *.mil, *.cal, *.fif, *.dsf, *.cmx, *.wi, *.dwg, *.dxf, *.svf

This is what I have in my configFile.xml

<configuration> 
  <property name="Skin">Telerik</property> 
  <property name="EditModes">Design,HTML</property> 
  <property name="MaxImageSize">100000</property> 
  <property name="ImagesFilters">*.gif,*.png,*.jpg</property> 
</configuration> 



0
Michael Loffland
Top achievements
Rank 1
answered on 26 Mar 2009, 02:39 PM
Figured it out....

Each file extension needs its own "item" tag.

<configuration> 
  <property name="Skin">Telerik</property> 
  <property name="EditModes">Design,HTML</property> 
  <property name="MaxImageSize">100000</property> 
  <property name="ImagesFilters"
    <item>*.jpg</item> 
    <item>*.gif</item> 
    <item>*.png</item> 
    <item>*.bmp</item> 
  </property> 
</configuration> 

Tags
Editor
Asked by
Michael Loffland
Top achievements
Rank 1
Answers by
Michael Loffland
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or