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

[Solved] Image Manager

4 Answers 173 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 22 Dec 2007, 08:29 PM
Just getting started with the Prometheus editor. Very cool - but I am having a problem with the image manager. When it opens, I see the folder I want to see. When I double-click the folder to open it, I get a javascript error. The files in the folder are not displayed.

The error (copied from Firebug):

missing ; before statement
Sys$CultureInfo$_getAbbrMonthIndex("")ScriptResource.ax... (line 5762)
$find('dialogControl_ImageManager_FileLister1').loadChildItems([[0,7,'bullet.gif...

This doesn't happen in the demos, so I must have missed some setting. Any iedas?

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Dec 2007, 03:32 PM
Hi Dan,

Could you please provide more information about the problem and you project configuration?

It will be best if you open a support ticket and send us a sample runnable project along with two screenshots of the projects folder structure in IIS and Windows Explorer.

Once we are able to reproduce the problem, we will do our best to provide a solution.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dan Ehrmann
Top achievements
Rank 1
answered on 23 Dec 2007, 04:35 PM
Rumen -

I will try to create a test project - maybe doing that will help me see what I did wrong :)

I have the image manager paths set up like this (update and delete paths are the same):

editor.ImageManager.ViewPaths = new string[1] { "~/images/" };

The web config is set up properly as far as I can tell. All other functions are working. Dialogs are OK because the link manager works.


A couple other questions have come up while exploring the new editor:

  • AllowScripts is not yet implemented - I have created content filter to take care of this, but I wonder when this property will be available.
  • Toolbar docking zones in toolsfile.xml seem to be ignored - all toolbars are at the top. Is this correct? Is there a fix for this, or will it be working in a future version?
  • Is there a way to create a smiley (emoticon) toolbar? I have an example from the original editor, but it does not work in the Prometheus version.
  • I tried using a ToolStrip to create a smiley picker. It works fine, except that the ShowText property seems to be ignored. Also, this requires me to create a command for each smiley, where I would prefer to be able to create a single command and read some property from the event args to allow me to insert the proper image. Is this possible?
0
Rumen
Telerik team
answered on 27 Dec 2007, 04:06 PM
Hello Dan,

Up to the questions:
  • We plan to add the AllowScripts property for the next Q1 2007.
  • The docking zone functionality is not yet implemented in RadEditor "Prometheus". This feature is also planed for the coming future releases.
  • You can see how to implement a custom emoticons dropdown in the following forum thread: Smilie Example.
Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dan Ehrmann
Top achievements
Rank 1
answered on 31 Dec 2007, 01:28 PM
I found the problem with the image manager. In my web.config file, I had xhtmlConformance set to "Legacy". I changed it to "Transitional" and the image manager worked. This also resolved problems on a couple of pages I had converted from the original RadAjax to the Prometheus version.

This would be a good thing to include in your documentation on adding Prometheus to an existing web application. xhtmlConformance must be set to "Transitional" or "Strict" for RadAjax (and MS Ajax) to work. The setting can also be left out - it defaults to "Transitional".
Tags
Editor
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dan Ehrmann
Top achievements
Rank 1
Share this question
or