Home Search Member List Faq Register Login  
UltimateEditor
Re: Previewing images in Server Explorer

Thread Starter: ksPhil   Started: 04-13-2009 3:22 AM   Replies: 7
 Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Previewing images in Server Explorer
 Printable Version    « Previous Thread   Next Thread »
  13 Apr 2009, 3:22 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Previewing images in Server Explorer

As in this thread:
http://forums.karamasoft.com/ShowPost.aspx?PostID=8446
I found I could not preview images in the server explorer dialog. Then I discovered that I could, as long as they were gif images, but only gifs... in my aspx page when setting up the editor I had this property set:

ImageFileTypes="jpg|jpeg|gif|png"

I discovered that by removing this, the image preview magically started working with all file types - but with it in, only gif images would preview.

ImageFileTypes="*" also results in no previews. The only way to make the preview pane work is by leaving this property out altogether.

It would be nice to have this property set, to stop users being silly, but as it is I will have to leave it out...


  
  14 Apr 2009, 9:43 AM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Previewing images in Server Explorer
ImageFileTypes property has a default value of "bmp|cgm|cin|cpi|dpx|dxf|exr|fpx|gif|igs|jpeg|jpg|jpg2|jp2|pcd|pcf|pcx|pict|pct|pic|png|ppm|svg|svgz|tiff|tif|tga|wmf|xbm|xpm" as can be seen at http://www.karamasoft.com/UltimateEditor/ServerAPI/Karamasoft.WebControls.UltimateEditor.UltimateEditor.ImageFileTypes.html. UltimateEditor needs this property to determine whether the file extension of the selected file in server explorer is an image type and the default value for this property covers most of the image file extensions. We would recommend you to append the list of file extensions that you want to add to this property instead of setting it to "*".
  
  14 Apr 2009, 9:53 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Previewing images in Server Explorer
Hi - thanks, but I don't want to append to this list - I want to restrict it so that ONLY files of type jpg|jpeg|gif|png are allowed - but when I set
ImageFileTypes="jpg|jpeg|gif|png"
I find that the image preview stops working. The only way I can get it to work is by omitting this property altogether...

/edit

ok - this is really weird - all works OK as long as I create the folders and upload the files via the Server Explorer dialogs. But during testing I was "cheating" and just manually copying folders/files to the user folder via Windows Explorer, and it was *these* images that wouldn't preview (though they listed OK on the left of SE, just didn't preview)

No doubt there's a reason for that...
 

  
  14 Apr 2009, 11:22 AM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Previewing images in Server Explorer
We found the problem that was only applying to the first and the last image types in your ImageFileTypes property value, which are jpg and png (jpeg and gif types would display properly). We fixed the issue but haven't released a new build yet. We will send you a patch shortly.
  
  14 Apr 2009, 11:43 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Previewing images in Server Explorer
Thank you! Perhaps tha was more to do with it tha my last post , which was probably coincidental...
  
  16 Apr 2009, 7:32 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Quotes around attributes

On a related issue (well, related to Server Explorer):

I hate to sound like I keep finding things wrong, because I really like this editor, but one minor issue is this:

When adding images via Server Explorer, you are given the option of adding some "Alt" text in the dialog - if the phrase you enter includes a space then the HTML output is enclosed in quotes - eg
alt="hello world"
but if you just add a single word, it isn't, and you get
alt=hello

I would much prefer consistency - and have quotes around all attributes by default. I believe (but am willing to be corrected) that the W3C standard requires them. It also makes for easier custom parsing of the output...

cheers
Phil


  
  16 Apr 2009, 11:28 AM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Quotes around attributes
You should use the editor in XHTML mode to be more compliant with W3C standards. If you switch to XHTML mode, you will see that the alt attribute will be rendered as alt="hello". Please visit our XHTML output sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=XHTMLOutput.
  
  16 Apr 2009, 12:49 PM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Quotes around attributes
Indeed I should!  Thanks... Snail
  
 Page 1 of 1 (8 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Previewing images in Server Explorer

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.