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

[Solved] ImageManager/DocumentManager isn't accessable with editor 5.6.0.0??

5 Answers 56 Views
RadEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikolaj Rasmussen
Top achievements
Rank 1
Nikolaj Rasmussen asked on 16 Jan 2006, 09:57 AM
Hey..
When i try to open the imagemanager from the editor 5.6.0.0 it simply display
"Could not find the command SharePoint/ImageManager. Please update your command list".

Same errormessages popup with all the SharePoint/* commands.

Best Regards
Nikolaj Rasmussen

5 Answers, 1 is accepted

Sort by
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 16 Jan 2006, 10:46 AM
FYI: I've got the radeditor on a standalone sps-context-aspx-page :)

And the imagemanager works fine in the radeditor-webpart.

0
Atanas Korchev
Telerik team
answered on 16 Jan 2006, 11:17 AM

Hello Nikolaj,

To make it work you should include in your page reference to the following javascript file:

<script src="[PathToRadControls]/EditorWebPart/Scripts/2_0_0/EditorCommands.js" >
</script>


In case of GAC deployment it would be:
<script src="/_wpresources/RadWebParts/2.0.0.0__1f131a624888eeed/RadControls/EditorWebPart/Scripts/2_0_0/EditorCommands.js" >
</script>


In case of bin folder deployment it would look like this:
<script src="/wpresources/RadWebParts/RadControls/EditorWebPart/Scripts/2_0_0/EditorCommands.js" >
</script>


Greetings,

Albertthe telerik team
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 16 Jan 2006, 11:44 AM
Hello,
Now i've got a popupwindow.. but with a error "value cannot be null". :(
0
Atanas Korchev
Telerik team
answered on 16 Jan 2006, 03:15 PM
Hello Nikolaj,

It appears the internal implementation of r.a.d.editor SharePoint edition has changed in the latest version. Our dev team shared some internal details - the following code should make things work (add it in the Page_Load event of your page):

RadEditor1.DialogParameters.Clear();
ParameterCollection imageArguments = new ParameterCollection();
imageArguments.Add(new Parameter("ThumbSuffix", RadEditor1.ThumbSuffix));
RadEditor1.Add(new Parameter("MaxImageSize", RadEditor1.MaxImageSize.ToString()));
imageArguments.Add(new Parameter("AllowThumbGeneration",   RadEditor1.AllowThumbGeneration.ToString()));
imageArguments.Add(new Parameter("SiteUrl",
SPEncode.UrlEncode(SPControl.GetContextSite(Context).Url)));
imageArguments.Add(
new
Parameter("WebUrl",
SPEncode.UrlEncode(SPControl.GetContextWeb(Context).ServerRelativeUrl)));
RadEditor1.DialogParameters.Add("SharePoint/ImageManager", imageArguments);


However keep in mind this is internal implementation and might change again in future releases of r.a.d.editor SharePoint.

Greetings,
Albert
the telerik team
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 17 Jan 2006, 08:57 AM
Hey Albert,
Thx, now it works...

Just a tiny little bug :)

RadEditor1.Add(new Parameter("MaxImageSize", RadEditor1.MaxImageSize.ToString()));

replaced with

imageArguments.Add(new Parameter("MaxImageSize", RadEditor1.MaxImageSize.ToString()));
Tags
RadEditor
Asked by
Nikolaj Rasmussen
Top achievements
Rank 1
Answers by
Nikolaj Rasmussen
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or